summaryrefslogtreecommitdiff
path: root/gdk/gdkinternals.h
diff options
context:
space:
mode:
authorAlexander Larsson <alexl@redhat.com>2014-11-20 11:50:11 +0100
committerAlexander Larsson <alexl@redhat.com>2014-11-20 12:38:04 +0100
commit1eb3b34bcebc11a7a46346f2f35d845e4194cb45 (patch)
tree2ae6794c651f718628eb68b7dc7a9555d2b7c7e1 /gdk/gdkinternals.h
parent788478dff9466b6606d61aa977847b7d78077d0f (diff)
downloadgtk+-1eb3b34bcebc11a7a46346f2f35d845e4194cb45.tar.gz
Add gdk_window_get_unscaled_size
This is required for the X backend GL integration. If the window has a height that is not a multiple of the window scale we can't properly do the y coordinate flipping that GL needs. Other backends can ignore this and use the default implementation. https://bugzilla.gnome.org/show_bug.cgi?id=739750
Diffstat (limited to 'gdk/gdkinternals.h')
-rw-r--r--gdk/gdkinternals.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/gdk/gdkinternals.h b/gdk/gdkinternals.h
index be1b0ed834..ca89811e4d 100644
--- a/gdk/gdkinternals.h
+++ b/gdk/gdkinternals.h
@@ -375,7 +375,9 @@ void _gdk_window_update_size (GdkWindow *window);
gboolean _gdk_window_update_viewable (GdkWindow *window);
GdkGLContext * gdk_window_get_paint_gl_context (GdkWindow *window,
GError **error);
-
+void gdk_window_get_unscaled_size (GdkWindow *window,
+ int *unscaled_width,
+ int *unscaled_height);
void _gdk_window_process_updates_recurse (GdkWindow *window,
cairo_region_t *expose_region);