diff --git a/src/libguac/display-layer-list.c b/src/libguac/display-layer-list.c index 350f7720c2..f80aa3a4ec 100644 --- a/src/libguac/display-layer-list.c +++ b/src/libguac/display-layer-list.c @@ -368,7 +368,7 @@ void guac_display_remove_layer(guac_display_layer* display_layer) { } -void PFW_LFW_guac_display_layer_resize(guac_display_layer* layer, int width, int height) { +void PFW_guac_display_layer_resize(guac_display_layer* layer, int width, int height) { /* Flush and destroy any cached Cairo context */ guac_display_layer_cairo_context* cairo_context = &(layer->pending_frame_cairo_context); diff --git a/src/libguac/display-layer.c b/src/libguac/display-layer.c index 83b96aea09..be1caa2a61 100644 --- a/src/libguac/display-layer.c +++ b/src/libguac/display-layer.c @@ -137,12 +137,10 @@ void guac_display_layer_resize(guac_display_layer* layer, int width, int height) guac_display* display = layer->display; guac_rwlock_acquire_write_lock(&display->pending_frame.lock); - guac_rwlock_acquire_write_lock(&display->last_frame.lock); - PFW_LFW_guac_display_layer_resize(layer, width, height); + PFW_guac_display_layer_resize(layer, width, height); PFW_guac_display_layer_touch(layer); - guac_rwlock_release_lock(&display->last_frame.lock); guac_rwlock_release_lock(&display->pending_frame.lock); } diff --git a/src/libguac/display-priv.h b/src/libguac/display-priv.h index 42d1f326bf..ca9298f313 100644 --- a/src/libguac/display-priv.h +++ b/src/libguac/display-priv.h @@ -754,7 +754,7 @@ void guac_display_remove_layer(guac_display_layer* display_layer); * @param height * The new height, in pixels. */ -void PFW_LFW_guac_display_layer_resize(guac_display_layer* layer, +void PFW_guac_display_layer_resize(guac_display_layer* layer, int width, int height); /**