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;