don't fail if BR2_USE_UPDATES tries to update non-checkout
[buildroot.git] / package / rdesktop / rdesktop-8bit-colors.patch
blob710f8debef2038d287e6da361b40957137f03e9b
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)
7 /* we use a colourmap, so the default visual should do */
8 - g_owncolmap = True;
9 +// g_owncolmap = True;
10 g_visual = vmatches[0].visual;
11 g_depth = vmatches[0].depth;
13 @@ -1568,7 +1568,7 @@ ui_init(void)
15 g_xcolmap =
16 XCreateColormap(g_display, RootWindowOfScreen(g_screen), g_visual,
17 - AllocNone);
18 + (g_depth <= 8) ? AllocAll : AllocNone);
19 if (g_depth <= 8)
20 warning("Display colour depth is %d bit: you may want to use -C for a private colourmap.\n", g_depth);