summaryrefslogtreecommitdiffstats
path: root/package/rdesktop/rdesktop-8bit-colors.patch
diff options
context:
space:
mode:
authorPeter Korsgaard <jacmet@sunsite.dk>2007-01-17 13:58:01 +0000
committerPeter Korsgaard <jacmet@sunsite.dk>2007-01-17 13:58:01 +0000
commite2dde9c7cdc2f9ed851acfb7daa858ffa1744246 (patch)
tree8e3899d13b3a3e9b34730bbab9163617816867be /package/rdesktop/rdesktop-8bit-colors.patch
parentbb1caf686c16a1672cfc568de5fc7c68947f3412 (diff)
downloadbuildroot-novena-e2dde9c7cdc2f9ed851acfb7daa858ffa1744246.tar.gz
buildroot-novena-e2dde9c7cdc2f9ed851acfb7daa858ffa1744246.zip
rdesktop package
Diffstat (limited to 'package/rdesktop/rdesktop-8bit-colors.patch')
-rw-r--r--package/rdesktop/rdesktop-8bit-colors.patch21
1 files changed, 21 insertions, 0 deletions
diff --git a/package/rdesktop/rdesktop-8bit-colors.patch b/package/rdesktop/rdesktop-8bit-colors.patch
new file mode 100644
index 000000000..710f8debe
--- /dev/null
+++ b/package/rdesktop/rdesktop-8bit-colors.patch
@@ -0,0 +1,21 @@
+diff -urpN rdesktop-1.5.0-orig/xwin.c rdesktop-1.5.0/xwin.c
+--- rdesktop-1.5.0-orig/xwin.c 2007-01-17 12:01:18.000000000 +0100
++++ rdesktop-1.5.0/xwin.c 2007-01-17 12:05:02.000000000 +0100
+@@ -1461,7 +1461,7 @@ select_visual(int screen_num)
+ }
+
+ /* we use a colourmap, so the default visual should do */
+- g_owncolmap = True;
++// g_owncolmap = True;
+ g_visual = vmatches[0].visual;
+ g_depth = vmatches[0].depth;
+ }
+@@ -1568,7 +1568,7 @@ ui_init(void)
+ {
+ g_xcolmap =
+ XCreateColormap(g_display, RootWindowOfScreen(g_screen), g_visual,
+- AllocNone);
++ (g_depth <= 8) ? AllocAll : AllocNone);
+ if (g_depth <= 8)
+ warning("Display colour depth is %d bit: you may want to use -C for a private colourmap.\n", g_depth);
+ }