diff options
author | Jay Sorg <jay.sorg@gmail.com> | 2012-05-07 11:21:47 -0700 |
---|---|---|
committer | Jay Sorg <jay.sorg@gmail.com> | 2012-05-07 11:21:47 -0700 |
commit | 769e006dfe6e365b1fc82cd57915dc0f841fbec4 (patch) | |
tree | 15449dc309ae4843b26eee51afc929e304ca111c /freerdp1/xrdp-color.c | |
parent | 3e422c04c6289f3f1f7cf9ce4325982b942ede7c (diff) | |
download | xrdp-proprietary-769e006dfe6e365b1fc82cd57915dc0f841fbec4.tar.gz xrdp-proprietary-769e006dfe6e365b1fc82cd57915dc0f841fbec4.zip |
freerdp1: fixes from ArvidNorr
Diffstat (limited to 'freerdp1/xrdp-color.c')
-rw-r--r-- | freerdp1/xrdp-color.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/freerdp1/xrdp-color.c b/freerdp1/xrdp-color.c index 0ff2e39d..ef74d1c5 100644 --- a/freerdp1/xrdp-color.c +++ b/freerdp1/xrdp-color.c @@ -131,6 +131,10 @@ convert_bitmap(int in_bpp, int out_bpp, char* bmpdata, } return out; } + if ((in_bpp == 15) && (out_bpp == 15)) + { + return bmpdata; + } if ((in_bpp == 16) && (out_bpp == 16)) { return bmpdata; @@ -239,6 +243,10 @@ convert_color(int in_bpp, int out_bpp, int in_color, int* palette) pixel = COLOR24BGR(red, green, blue); return pixel; } + if ((in_bpp == 15) && (out_bpp == 15)) + { + return in_color; + } if ((in_bpp == 16) && (out_bpp == 16)) { return in_color; |