private colour map code only works for 8 bpp, disable otherwise

(from neoware)


git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@516 423420c4-83ab-492f-b58f-81f9feb106b5
This commit is contained in:
Matt Chapman 2003-10-28 03:30:51 +00:00
parent e035c75aa4
commit ed5618c619

6
xwin.c
View File

@ -705,7 +705,11 @@ ui_init(void)
return False;
}
if (g_owncolmap != True)
/* private colour map code only works for 8 bpp */
if (g_owncolmap && (g_bpp > 8))
g_owncolmap = False;
if (!g_owncolmap)
{
g_xcolmap = DefaultColormapOfScreen(g_screen);
if (g_depth <= 8)