summaryrefslogtreecommitdiffstats
path: root/xrdp/xrdp_cache.c
diff options
context:
space:
mode:
authorjsorg71 <jsorg71>2005-01-15 20:53:02 +0000
committerjsorg71 <jsorg71>2005-01-15 20:53:02 +0000
commitcf3e17cb73984b093ac8e3138a6e3d98171c5253 (patch)
treebc5d3ff0ed6994710aa2b38af6dc4782c160416b /xrdp/xrdp_cache.c
parent520301d70aafd53287b0f4d153a2b27dc025ea76 (diff)
downloadxrdp-proprietary-cf3e17cb73984b093ac8e3138a6e3d98171c5253.tar.gz
xrdp-proprietary-cf3e17cb73984b093ac8e3138a6e3d98171c5253.zip
changed the way the palette works in 8 bpp and changed some parameter passing
Diffstat (limited to 'xrdp/xrdp_cache.c')
-rw-r--r--xrdp/xrdp_cache.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/xrdp/xrdp_cache.c b/xrdp/xrdp_cache.c
index 644b98c2..031563f6 100644
--- a/xrdp/xrdp_cache.c
+++ b/xrdp/xrdp_cache.c
@@ -214,6 +214,8 @@ int xrdp_cache_add_bitmap(struct xrdp_cache* self, struct xrdp_bitmap* bitmap)
}
/*****************************************************************************/
+/* not used */
+/* not sure how to use a palette in rdp */
int xrdp_cache_add_palette(struct xrdp_cache* self, int* palette)
{
int i;
@@ -221,11 +223,17 @@ int xrdp_cache_add_palette(struct xrdp_cache* self, int* palette)
int index;
if (self == 0)
+ {
return 0;
+ }
if (palette == 0)
+ {
return 0;
+ }
if (self->wm->screen->bpp > 8)
+ {
return 0;
+ }
self->palette_stamp++;
/* look for match */
for (i = 0; i < 6; i++)