GUAC-236: Fix buffer resize (contents were being cleared).

This commit is contained in:
Michael Jumper 2016-02-28 19:21:14 -08:00
parent 3a972d4845
commit a5ec24c17b

View File

@ -100,8 +100,9 @@ int guacenc_buffer_resize(guacenc_buffer* buffer, int width, int height) {
/* Copy old surface, if defined */
if (buffer->surface != NULL) {
cairo_set_operator(cairo, CAIRO_OPERATOR_SOURCE);
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);
}