From fd8b76b410bc6c63b1c8778a6e04cf0874e95b01 Mon Sep 17 00:00:00 2001 From: Michael Jumper Date: Wed, 8 Feb 2012 17:13:45 -0800 Subject: [PATCH] Fix image corruption (was using wrong buffer for surface). --- protocols/rdp/src/rdp_bitmap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/protocols/rdp/src/rdp_bitmap.c b/protocols/rdp/src/rdp_bitmap.c index ac5eb69b..c192395f 100644 --- a/protocols/rdp/src/rdp_bitmap.c +++ b/protocols/rdp/src/rdp_bitmap.c @@ -74,7 +74,7 @@ void guac_rdp_bitmap_new(rdpContext* context, rdpBitmap* bitmap) { /* Create surface from image data */ cairo_surface_t* surface = cairo_image_surface_create_for_data( - bitmap->data, CAIRO_FORMAT_RGB24, + image_buffer, CAIRO_FORMAT_RGB24, bitmap->width, bitmap->height, 4*bitmap->width); /* Send surface to buffer */