/[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 1199 by astrand, Mon Mar 27 08:17:34 2006 UTC revision 1226 by astrand, Wed Apr 12 06:47:24 2006 UTC
# Line 1325  select_visual() Line 1325  select_visual()
1325    
1326          red_weight = blue_weight = green_weight = 0;          red_weight = blue_weight = green_weight = 0;
1327    
1328            if (g_server_depth == -1)
1329            {
1330                    g_server_depth = DisplayPlanes(g_display, DefaultScreen(g_display));
1331            }
1332    
1333          pfm = XListPixmapFormats(g_display, &pixmap_formats_count);          pfm = XListPixmapFormats(g_display, &pixmap_formats_count);
1334          if (pfm == NULL)          if (pfm == NULL)
1335          {          {
# Line 1344  select_visual() Line 1349  select_visual()
1349                  for (i = 0; i < visuals_count; ++i)                  for (i = 0; i < visuals_count; ++i)
1350                  {                  {
1351                          XVisualInfo *visual_info = &vmatches[i];                          XVisualInfo *visual_info = &vmatches[i];
1352                            BOOL can_translate_to_bpp = False;
1353                            int j;
1354    
1355                          /* Try to find a no-translation visual that'll                          /* Try to find a no-translation visual that'll
1356                             allow us to use RDP bitmaps directly as ZPixmaps. */                             allow us to use RDP bitmaps directly as ZPixmaps. */
# Line 1387  select_visual() Line 1394  select_visual()
1394    
1395                          /* Only care for visuals, for whose BPPs (not depths!)                          /* Only care for visuals, for whose BPPs (not depths!)
1396                             we have a translateXtoY function. */                             we have a translateXtoY function. */
                         BOOL can_translate_to_bpp = False;  
                         int j;  
1397                          for (j = 0; j < pixmap_formats_count; ++j)                          for (j = 0; j < pixmap_formats_count; ++j)
1398                          {                          {
1399                                  if (pfm[j].depth == visual_info->depth)                                  if (pfm[j].depth == visual_info->depth)
# Line 1636  ui_deinit(void) Line 1641  ui_deinit(void)
1641                  sw_remove_window(g_seamless_windows);                  sw_remove_window(g_seamless_windows);
1642          }          }
1643    
1644            xclip_deinit();
1645    
1646          if (g_IM != NULL)          if (g_IM != NULL)
1647                  XCloseIM(g_IM);                  XCloseIM(g_IM);
1648    

Legend:
Removed from v.1199  
changed lines
  Added in v.1226

  ViewVC Help
Powered by ViewVC 1.1.26