Fix image corruption (was using wrong buffer for surface).
authorMichael Jumper <zhangmaike@users.sourceforge.net>
Thu, 9 Feb 2012 01:13:45 +0000 (17:13 -0800)
committerMichael Jumper <zhangmaike@users.sourceforge.net>
Thu, 9 Feb 2012 01:13:45 +0000 (17:13 -0800)
src/rdp_bitmap.c

index ac5eb69..c192395 100644 (file)
@@ -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 */