Added detect of uncompressed data in CACHE_BITMAP_REV3_ORDER. According to example from http://msdn.microsoft.com/en-us/library/gg441209.aspx.
This commit is contained in:
parent
f8c9f7a486
commit
5bbba65bbb
6
libfreerdp/cache/bitmap.c
vendored
6
libfreerdp/cache/bitmap.c
vendored
@ -149,9 +149,13 @@ void update_gdi_cache_bitmap_v3(rdpContext* context, CACHE_BITMAP_V3_ORDER* cach
|
||||
cacheBitmapV3->bitmapData.bpp = context->instance->settings->ColorDepth;
|
||||
}
|
||||
|
||||
// According to http://msdn.microsoft.com/en-us/library/gg441209.aspx
|
||||
// CACHE_BITMAP_REV3_ORDER::bitmapData::codecID = 0x00 (uncompressed)
|
||||
BOOL isCompressed = (bitmapData->codecID != RDP_CODEC_ID_NONE);
|
||||
|
||||
bitmap->Decompress(context, bitmap,
|
||||
bitmapData->data, bitmap->width, bitmap->height,
|
||||
bitmapData->bpp, bitmapData->length, TRUE,
|
||||
bitmapData->bpp, bitmapData->length, isCompressed,
|
||||
bitmapData->codecID);
|
||||
|
||||
bitmap->New(context, bitmap);
|
||||
|
Loading…
Reference in New Issue
Block a user