examples: Use right function to query size

This commit is contained in:
Benjamin Otte 2017-11-08 16:05:52 +01:00
parent 2ff5038b09
commit 3f7ada506e

View File

@ -27,8 +27,8 @@ configure_event_cb (GtkWidget *widget,
surface = gdk_window_create_similar_surface (gtk_widget_get_window (widget),
CAIRO_CONTENT_COLOR,
gtk_widget_get_allocated_width (widget),
gtk_widget_get_allocated_height (widget));
gtk_widget_get_width (widget),
gtk_widget_get_height (widget));
/* Initialize the surface to white */
clear_surface ();