projects
/
libguac-client-rdp.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b2a41b1
)
Fix image corruption (was using wrong buffer for surface).
author
Michael Jumper <zhangmaike@users.sourceforge.net>
Thu, 9 Feb 2012 01:13:45 +0000
(17:13 -0800)
committer
Michael Jumper <zhangmaike@users.sourceforge.net>
Thu, 9 Feb 2012 01:13:45 +0000
(17:13 -0800)
src/rdp_bitmap.c
patch
|
blob
|
history
diff --git
a/src/rdp_bitmap.c
b/src/rdp_bitmap.c
index
ac5eb69
..
c192395
100644
(file)
--- a/
src/rdp_bitmap.c
+++ b/
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 */