rdesktop-8bit-colors.patch 749 B

123456789101112131415161718192021
  1. diff -urpN rdesktop-1.5.0-orig/xwin.c rdesktop-1.5.0/xwin.c
  2. --- rdesktop-1.5.0-orig/xwin.c 2007-01-17 12:01:18.000000000 +0100
  3. +++ rdesktop-1.5.0/xwin.c 2007-01-17 12:05:02.000000000 +0100
  4. @@ -1461,7 +1461,7 @@ select_visual(int screen_num)
  5. }
  6. /* we use a colourmap, so the default visual should do */
  7. - g_owncolmap = True;
  8. +// g_owncolmap = True;
  9. g_visual = vmatches[0].visual;
  10. g_depth = vmatches[0].depth;
  11. }
  12. @@ -1568,7 +1568,7 @@ ui_init(void)
  13. {
  14. g_xcolmap =
  15. XCreateColormap(g_display, RootWindowOfScreen(g_screen), g_visual,
  16. - AllocNone);
  17. + (g_depth <= 8) ? AllocAll : AllocNone);
  18. if (g_depth <= 8)
  19. warning("Display colour depth is %d bit: you may want to use -C for a private colourmap.\n", g_depth);
  20. }