Merge pull request #381 from pjd/bitmap

Each bitmap send by the server contains color depth. Even if we negotiated 8bpp server can send bitmap which has 16bpp.
This commit is contained in:
Otavio Salvador 2012-01-31 07:33:23 -08:00
commit fcff3b8275

View File

@ -43,7 +43,7 @@ void xf_Bitmap_New(rdpContext* context, rdpBitmap* bitmap)
if (bitmap->data != NULL)
{
data = freerdp_image_convert(bitmap->data, NULL,
bitmap->width, bitmap->height, xfi->srcBpp, xfi->bpp, xfi->clrconv);
bitmap->width, bitmap->height, bitmap->bpp, xfi->bpp, xfi->clrconv);
if (bitmap->ephemeral != true)
{