GUAC-852: Use freerdp_image_copy instead of freerdp_image_flip.

This commit is contained in:
Michael Jumper 2014-11-20 17:12:59 -08:00
parent fc6758ffdf
commit 3171da9e09

View File

@ -31,6 +31,7 @@
#include <freerdp/codec/bitmap.h> #include <freerdp/codec/bitmap.h>
#include <freerdp/codec/color.h> #include <freerdp/codec/color.h>
#include <freerdp/freerdp.h> #include <freerdp/freerdp.h>
#include <freerdp/gdi/gdi.h>
#include <guacamole/client.h> #include <guacamole/client.h>
#include <guacamole/socket.h> #include <guacamole/socket.h>
@ -224,7 +225,10 @@ void guac_rdp_bitmap_decompress(rdpContext* context, rdpBitmap* bitmap, UINT8* d
if (compressed) if (compressed)
bitmap_decompress(context, data, length, bpp, width, height, bitmap->data); bitmap_decompress(context, data, length, bpp, width, height, bitmap->data);
else 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->compressed = FALSE;
bitmap->length = size; bitmap->length = size;