/[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 707 by astrand, Tue Jun 1 08:06:02 2004 UTC revision 708 by jsorg71, Fri Jun 4 15:01:36 2004 UTC
# Line 1031  void Line 1031  void
1031  ui_resize_window()  ui_resize_window()
1032  {  {
1033          XSizeHints *sizehints;          XSizeHints *sizehints;
1034            Pixmap bs;
1035    
1036          sizehints = XAllocSizeHints();          sizehints = XAllocSizeHints();
1037          if (sizehints)          if (sizehints)
# Line 1046  ui_resize_window() Line 1047  ui_resize_window()
1047          {          {
1048                  XResizeWindow(g_display, g_wnd, g_width, g_height);                  XResizeWindow(g_display, g_wnd, g_width, g_height);
1049          }          }
1050    
1051            /* create new backstore pixmap */
1052            if (g_backstore != 0)
1053            {
1054                    bs = XCreatePixmap(g_display, g_wnd, g_width, g_height, g_depth);
1055                    XSetForeground(g_display, g_gc, BlackPixelOfScreen(g_screen));
1056                    XFillRectangle(g_display, bs, g_gc, 0, 0, g_width, g_height);
1057                    XCopyArea(g_display, g_backstore, bs, g_gc, 0, 0, g_width, g_height, 0, 0);
1058                    XFreePixmap(g_display, g_backstore);
1059                    g_backstore = bs;
1060            }
1061  }  }
1062    
1063  void  void

Legend:
Removed from v.707  
changed lines
  Added in v.708

  ViewVC Help
Powered by ViewVC 1.1.26