GUAC-236: Fix buffer resize (contents were being cleared).
This commit is contained in:
parent
3a972d4845
commit
a5ec24c17b
@ -100,8 +100,9 @@ int guacenc_buffer_resize(guacenc_buffer* buffer, int width, int height) {
|
|||||||
|
|
||||||
/* Copy old surface, if defined */
|
/* Copy old surface, if defined */
|
||||||
if (buffer->surface != NULL) {
|
if (buffer->surface != NULL) {
|
||||||
|
cairo_set_operator(cairo, CAIRO_OPERATOR_SOURCE);
|
||||||
cairo_set_source_surface(cairo, buffer->surface, 0, 0);
|
cairo_set_source_surface(cairo, buffer->surface, 0, 0);
|
||||||
cairo_rectangle(cairo, 0, 0, width, height);
|
cairo_set_operator(cairo, CAIRO_OPERATOR_OVER);
|
||||||
cairo_paint(cairo);
|
cairo_paint(cairo);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user