/[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 576 by stargo, Thu Jan 22 20:31:59 2004 UTC revision 580 by astrand, Fri Jan 23 08:35:52 2004 UTC
# Line 731  ui_init(void) Line 731  ui_init(void)
731                  TrueColorVisual = True;                  TrueColorVisual = True;
732          }          }
733    
734          if ((g_server_bpp == 8) && ((! TrueColorVisual) || (g_depth <= 8)))          if ((g_server_bpp == 8) && ((!TrueColorVisual) || (g_depth <= 8)))
735          {          {
736                  /* we use a colourmap, so the default visual should do */                  /* we use a colourmap, so the default visual should do */
737                  g_visual = DefaultVisualOfScreen(g_screen);                  g_visual = DefaultVisualOfScreen(g_screen);
# Line 783  ui_init(void) Line 783  ui_init(void)
783    
784          if (!g_owncolmap)          if (!g_owncolmap)
785          {          {
786                  g_xcolmap = XCreateColormap(g_display,RootWindowOfScreen(g_screen),g_visual,AllocNone);                  g_xcolmap =
787                            XCreateColormap(g_display, RootWindowOfScreen(g_screen), g_visual,
788                                            AllocNone);
789                  if (g_depth <= 8)                  if (g_depth <= 8)
790                          warning("Screen depth is 8 bits or lower: you may want to use -C for a private colourmap\n");                          warning("Screen depth is 8 bits or lower: you may want to use -C for a private colourmap\n");
791          }          }
# Line 849  ui_deinit(void) Line 851  ui_deinit(void)
851  {  {
852          if (g_IM != NULL)          if (g_IM != NULL)
853                  XCloseIM(g_IM);                  XCloseIM(g_IM);
854            
855          if (g_null_cursor != NULL)          if (g_null_cursor != NULL)
856                  ui_destroy_cursor(g_null_cursor);                  ui_destroy_cursor(g_null_cursor);
857    
# Line 894  ui_create_window(void) Line 896  ui_create_window(void)
896    
897          if ((g_ownbackstore) && (g_backstore == NULL))          if ((g_ownbackstore) && (g_backstore == NULL))
898          {          {
899                  g_backstore =                  g_backstore = XCreatePixmap(g_display, g_wnd, g_width, g_height, g_depth);
                         XCreatePixmap(g_display, g_wnd, g_width, g_height,  
                                       g_depth);  
900    
901                  /* clear to prevent rubbish being exposed at startup */                  /* clear to prevent rubbish being exposed at startup */
902                  XSetForeground(g_display, g_gc, BlackPixelOfScreen(g_screen));                  XSetForeground(g_display, g_gc, BlackPixelOfScreen(g_screen));

Legend:
Removed from v.576  
changed lines
  Added in v.580

  ViewVC Help
Powered by ViewVC 1.1.26