Displaying 1 result from an estimated 1 matches for "last_bg".
2009 Mar 02
0
[PATCH 5 of 13] exploiting the new interface in vnc.c
...; i++) {
- vs->write_pixels(vs, row, w * vs->depth);
+ vs->write_pixels(vs, row, w * ds_get_bytes_per_pixel(vs->ds));
row += ds_get_linesize(vs->ds);
}
}
@@ -540,8 +550,8 @@
vnc_framebuffer_update(vs, x, y, w, h, 5);
- last_fg = (void *) malloc(vs->depth);
- last_bg = (void *) malloc(vs->depth);
+ last_fg = (void *) malloc(vs->serverds.pf.bytes_per_pixel);
+ last_bg = (void *) malloc(vs->serverds.pf.bytes_per_pixel);
has_fg = has_bg = 0;
for (j = y; j < (y + h); j += 16) {
for (i = x; i < (x + w); i += 16) {
@@ -618,7 +628,7 @@...