From 3171da9e09df22282be0878181f44981450e93d2 Mon Sep 17 00:00:00 2001 From: Michael Jumper Date: Thu, 20 Nov 2014 17:12:59 -0800 Subject: [PATCH] GUAC-852: Use freerdp_image_copy instead of freerdp_image_flip. --- src/protocols/rdp/rdp_bitmap.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/protocols/rdp/rdp_bitmap.c b/src/protocols/rdp/rdp_bitmap.c index 277f4232..d5d94ad8 100644 --- a/src/protocols/rdp/rdp_bitmap.c +++ b/src/protocols/rdp/rdp_bitmap.c @@ -31,6 +31,7 @@ #include #include #include +#include #include #include @@ -224,7 +225,10 @@ void guac_rdp_bitmap_decompress(rdpContext* context, rdpBitmap* bitmap, UINT8* d if (compressed) bitmap_decompress(context, data, length, bpp, width, height, bitmap->data); else - freerdp_image_flip(data, bitmap->data, width, height, bpp); + freerdp_image_copy( + bitmap->data, PIXEL_FORMAT_XRGB32, -1, 0, 0, + width, height, data, gdi_get_pixel_format(bpp, TRUE), -1, 0, 0, + NULL); bitmap->compressed = FALSE; bitmap->length = size;