Make option -a 15 works.
This commit is contained in:
parent
69fdca0abc
commit
e059b03b68
@ -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, bitmap->bpp, xfi->bpp, xfi->clrconv);
|
||||
bitmap->width, bitmap->height, xfi->srcBpp, xfi->bpp, xfi->clrconv);
|
||||
|
||||
if (bitmap->ephemeral != True)
|
||||
{
|
||||
@ -106,7 +106,7 @@ void xf_Bitmap_Decompress(rdpContext* context, rdpBitmap* bitmap,
|
||||
{
|
||||
uint16 size;
|
||||
|
||||
size = width * height * (bpp / 8);
|
||||
size = width * height * (bpp + 7) / 8;
|
||||
|
||||
if (bitmap->data == NULL)
|
||||
bitmap->data = (uint8*) xmalloc(size);
|
||||
|
@ -83,7 +83,7 @@ void gdi_Bitmap_Decompress(rdpContext* context, rdpBitmap* bitmap,
|
||||
{
|
||||
uint16 size;
|
||||
|
||||
size = width * height * (bpp / 8);
|
||||
size = width * height * (bpp + 7) / 8;
|
||||
|
||||
if (bitmap->data == NULL)
|
||||
bitmap->data = (uint8*) xmalloc(size);
|
||||
|
Loading…
Reference in New Issue
Block a user