/[rdesktop]/sourceforge.net/trunk/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/trunk/rdesktop/xwin.c

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

revision 72 by astrand, Mon Jul 29 18:59:01 2002 UTC revision 73 by astrand, Mon Jul 29 19:21:51 2002 UTC
# Line 589  ui_create_bitmap(int width, int height, Line 589  ui_create_bitmap(int width, int height,
589    
590          tdata = (owncolmap ? data : translate_image(width, height, data));          tdata = (owncolmap ? data : translate_image(width, height, data));
591          bitmap = XCreatePixmap(display, wnd, width, height, depth);          bitmap = XCreatePixmap(display, wnd, width, height, depth);
592          image = XCreateImage(display, visual, depth, ZPixmap, 0, tdata, width,          image = XCreateImage(display, visual, depth, ZPixmap, 0, (char *)tdata,
593                               height, 8, 0);                               width, height, 8, 0);
594    
595          XPutImage(display, bitmap, gc, image, 0, 0, 0, 0, width, height);          XPutImage(display, bitmap, gc, image, 0, 0, 0, 0, width, height);
596    
# Line 608  ui_paint_bitmap(int x, int y, int cx, in Line 608  ui_paint_bitmap(int x, int y, int cx, in
608          uint8 *tdata;          uint8 *tdata;
609    
610          tdata = (owncolmap ? data : translate_image(width, height, data));          tdata = (owncolmap ? data : translate_image(width, height, data));
611          image = XCreateImage(display, visual, depth, ZPixmap, 0, tdata, width,          image = XCreateImage(display, visual, depth, ZPixmap, 0, (char *)tdata,
612                               height, 8, 0);                               width, height, 8, 0);
613    
614          if (ownbackstore)          if (ownbackstore)
615          {          {
# Line 645  ui_create_glyph(int width, int height, u Line 645  ui_create_glyph(int width, int height, u
645          bitmap = XCreatePixmap(display, wnd, width, height, 1);          bitmap = XCreatePixmap(display, wnd, width, height, 1);
646          gc = XCreateGC(display, bitmap, 0, NULL);          gc = XCreateGC(display, bitmap, 0, NULL);
647    
648          image = XCreateImage(display, visual, 1, ZPixmap, 0, data, width,          image = XCreateImage(display, visual, 1, ZPixmap, 0, (char *)data,
649                               height, 8, scanline);                               width, height, 8, scanline);
650          image->byte_order = MSBFirst;          image->byte_order = MSBFirst;
651          image->bitmap_bit_order = MSBFirst;          image->bitmap_bit_order = MSBFirst;
652          XInitImage(image);          XInitImage(image);
# Line 1157  ui_desktop_restore(uint32 offset, int x, Line 1157  ui_desktop_restore(uint32 offset, int x,
1157          if (data == NULL)          if (data == NULL)
1158                  return;                  return;
1159    
1160          image = XCreateImage(display, visual, depth, ZPixmap, 0, data, cx, cy,          image = XCreateImage(display, visual, depth, ZPixmap, 0, (char *)data,
1161                               BitmapPad(display), cx * bpp / 8);                               cx, cy, BitmapPad(display), cx * bpp / 8);
1162    
1163          if (ownbackstore)          if (ownbackstore)
1164          {          {

Legend:
Removed from v.72  
changed lines
  Added in v.73

  ViewVC Help
Powered by ViewVC 1.1.26