[Message Prev][Message Next][Thread Prev][Thread Next][Message Index][Thread Index]

rdesktop and 8bpp



Hello
 
I am using rdesktop with an 8bpp X terminal. But the last rdesktop version (patch 19-3) doesn't correctly handled 256 colours.  (Which is not the case with rdesktop 1.0.0).
 
This problem is due to the palette management. Rdesktop 1.0.0 uses a a 'private colourmap'. This is needed when a display doesn't support numerous colours. And rdesktop 19-3 uses a shared colourmap.
 
For example, netscape allows to use a private colourmap by using the '-install' option.
 
I tried to fix the problem. So I picked from the original rdestop code the ui_create_colourmap, ui_set_colourmap and ui_destroy colourmap functions and I modified the rdesktop source code. (The most important X function is XCreateColourmap). The result is not so bad. It works when rdesktop is run through kde. But if rdesktop is run in full-screen mode or run from the failsafe mode colours are totally broken.
 
I am definitively not a competent X programmer so I am not able to provide a correct patch.
 
Does any body able to do that ?
 
I suggest to add a new rdesktop command line option to use or not a private colour map (because in 16bpp, a private colour map is not needed).
 
In advance thank you
 
Vincent
 
 
because rdesktop doesn't use a 256-colour display