/[rdesktop]/sourceforge.net/branches/seamlessrdp-branch/rdesktop/xwin.c
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /sourceforge.net/branches/seamlessrdp-branch/rdesktop/xwin.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 76 by astrand, Mon Jul 29 20:16:22 2002 UTC revision 77 by astrand, Mon Jul 29 20:17:10 2002 UTC
# Line 527  xwin_process_events() Line 527  xwin_process_events()
527                          case EnterNotify:                          case EnterNotify:
528                                  if (grab_keyboard)                                  if (grab_keyboard)
529                                          XGrabKeyboard(display, wnd, True,                                          XGrabKeyboard(display, wnd, True,
530                                                        GrabModeAsync, GrabModeAsync,                                                        GrabModeAsync,
531                                                          GrabModeAsync,
532                                                        CurrentTime);                                                        CurrentTime);
533                                  break;                                  break;
534    
# Line 606  ui_create_bitmap(int width, int height, Line 607  ui_create_bitmap(int width, int height,
607    
608          tdata = (owncolmap ? data : translate_image(width, height, data));          tdata = (owncolmap ? data : translate_image(width, height, data));
609          bitmap = XCreatePixmap(display, wnd, width, height, depth);          bitmap = XCreatePixmap(display, wnd, width, height, depth);
610          image = XCreateImage(display, visual, depth, ZPixmap, 0, (char *)tdata,          image = XCreateImage(display, visual, depth, ZPixmap, 0,
611                               width, height, 8, 0);                               (char *) tdata, width, height, 8, 0);
612    
613          XPutImage(display, bitmap, gc, image, 0, 0, 0, 0, width, height);          XPutImage(display, bitmap, gc, image, 0, 0, 0, 0, width, height);
614    
# Line 625  ui_paint_bitmap(int x, int y, int cx, in Line 626  ui_paint_bitmap(int x, int y, int cx, in
626          uint8 *tdata;          uint8 *tdata;
627    
628          tdata = (owncolmap ? data : translate_image(width, height, data));          tdata = (owncolmap ? data : translate_image(width, height, data));
629          image = XCreateImage(display, visual, depth, ZPixmap, 0, (char *)tdata,          image = XCreateImage(display, visual, depth, ZPixmap, 0,
630                               width, height, 8, 0);                               (char *) tdata, width, height, 8, 0);
631    
632          if (ownbackstore)          if (ownbackstore)
633          {          {
# Line 662  ui_create_glyph(int width, int height, u Line 663  ui_create_glyph(int width, int height, u
663          bitmap = XCreatePixmap(display, wnd, width, height, 1);          bitmap = XCreatePixmap(display, wnd, width, height, 1);
664          gc = XCreateGC(display, bitmap, 0, NULL);          gc = XCreateGC(display, bitmap, 0, NULL);
665    
666          image = XCreateImage(display, visual, 1, ZPixmap, 0, (char *)data,          image = XCreateImage(display, visual, 1, ZPixmap, 0, (char *) data,
667                               width, height, 8, scanline);                               width, height, 8, scanline);
668          image->byte_order = MSBFirst;          image->byte_order = MSBFirst;
669          image->bitmap_bit_order = MSBFirst;          image->bitmap_bit_order = MSBFirst;
# Line 1174  ui_desktop_restore(uint32 offset, int x, Line 1175  ui_desktop_restore(uint32 offset, int x,
1175          if (data == NULL)          if (data == NULL)
1176                  return;                  return;
1177    
1178          image = XCreateImage(display, visual, depth, ZPixmap, 0, (char *)data,          image = XCreateImage(display, visual, depth, ZPixmap, 0,
1179                               cx, cy, BitmapPad(display), cx * bpp / 8);                               (char *) data, cx, cy, BitmapPad(display),
1180                                 cx * bpp / 8);
1181    
1182          if (ownbackstore)          if (ownbackstore)
1183          {          {

Legend:
Removed from v.76  
changed lines
  Added in v.77

  ViewVC Help
Powered by ViewVC 1.1.26