GUACAMOLE-307: Merge the size instruction can also apply to buffers.
This commit is contained in:
commit
f72de10328
@ -38,13 +38,13 @@ int guacenc_handle_size(guacenc_display* display, int argc, char** argv) {
|
|||||||
int width = atoi(argv[1]);
|
int width = atoi(argv[1]);
|
||||||
int height = atoi(argv[2]);
|
int height = atoi(argv[2]);
|
||||||
|
|
||||||
/* Retrieve requested layer */
|
/* Retrieve requested layer/buffer */
|
||||||
guacenc_layer* layer = guacenc_display_get_layer(display, index);
|
guacenc_buffer* buffer = guacenc_display_get_related_buffer(display, index);
|
||||||
if (layer == NULL)
|
if (buffer == NULL)
|
||||||
return 1;
|
return 1;
|
||||||
|
|
||||||
/* Resize layer */
|
/* Resize layer/buffer */
|
||||||
return guacenc_buffer_resize(layer->buffer, width, height);
|
return guacenc_buffer_resize(buffer, width, height);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user