mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-09-22 14:54:09 +00:00
widget: Get rid of gdk_drawable_get_size() usage
This commit is contained in:
parent
f999c8dc29
commit
64dddaf1fe
@ -3980,7 +3980,8 @@ gtk_widget_queue_draw_area (GtkWidget *widget,
|
||||
x -= wx - priv->allocation.x;
|
||||
y -= wy - priv->allocation.y;
|
||||
|
||||
gdk_drawable_get_size (priv->window, &wwidth, &wheight);
|
||||
wwidth = gdk_window_get_width (priv->window);
|
||||
wheight = gdk_window_get_height (priv->window);
|
||||
|
||||
if (x + width <= 0 || y + height <= 0 ||
|
||||
x >= wwidth || y >= wheight)
|
||||
|
Loading…
Reference in New Issue
Block a user