/[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 1245 by ossman_, Fri Apr 28 07:55:36 2006 UTC revision 1246 by stargo, Tue Jul 11 17:22:24 2006 UTC
# Line 1314  calculate_mask_weight(uint32 mask) Line 1314  calculate_mask_weight(uint32 mask)
1314  }  }
1315    
1316  static BOOL  static BOOL
1317  select_visual()  select_visual(int screen_num)
1318  {  {
1319          XPixmapFormatValues *pfm;          XPixmapFormatValues *pfm;
1320          int pixmap_formats_count, visuals_count;          int pixmap_formats_count, visuals_count;
# Line 1340  select_visual() Line 1340  select_visual()
1340    
1341          /* Search for best TrueColor visual */          /* Search for best TrueColor visual */
1342          template.class = TrueColor;          template.class = TrueColor;
1343          vmatches = XGetVisualInfo(g_display, VisualClassMask, &template, &visuals_count);          template.screen = screen_num;
1344            vmatches = XGetVisualInfo(g_display, VisualClassMask | VisualScreenMask, &template, &visuals_count);
1345          g_visual = NULL;          g_visual = NULL;
1346          g_no_translate_image = False;          g_no_translate_image = False;
1347          g_compatible_arch = False;          g_compatible_arch = False;
# Line 1545  ui_init(void) Line 1546  ui_init(void)
1546          g_screen = ScreenOfDisplay(g_display, screen_num);          g_screen = ScreenOfDisplay(g_display, screen_num);
1547          g_depth = DefaultDepthOfScreen(g_screen);          g_depth = DefaultDepthOfScreen(g_screen);
1548    
1549          if (!select_visual())          if (!select_visual(screen_num))
1550                  return False;                  return False;
1551    
1552          if (g_no_translate_image)          if (g_no_translate_image)

Legend:
Removed from v.1245  
changed lines
  Added in v.1246

  ViewVC Help
Powered by ViewVC 1.1.26