summaryrefslogtreecommitdiff
path: root/gdk/gdkwindow.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2014-11-10 14:28:43 -0500
committerMatthias Clasen <mclasen@redhat.com>2014-11-10 14:28:43 -0500
commit8338b7e4cdc5702f74bfdc239e584f23cb1223ef (patch)
treed89fbc54a55f0026faa19a530d953e43030114db /gdk/gdkwindow.c
parent710f3320827b437bbcf4292203439a16e5117813 (diff)
downloadgtk+-8338b7e4cdc5702f74bfdc239e584f23cb1223ef.tar.gz
Move rendering mode into GdkDisplay
This is in preparation for making it runtime-settable in the inspector.
Diffstat (limited to 'gdk/gdkwindow.c')
-rw-r--r--gdk/gdkwindow.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/gdk/gdkwindow.c b/gdk/gdkwindow.c
index 7d85b76ef4..fdbdf37fb9 100644
--- a/gdk/gdkwindow.c
+++ b/gdk/gdkwindow.c
@@ -9448,6 +9448,7 @@ gdk_window_create_similar_surface (GdkWindow * window,
int width,
int height)
{
+ GdkDisplay *display;
cairo_surface_t *window_surface, *surface;
double sx, sy;
@@ -9457,7 +9458,8 @@ gdk_window_create_similar_surface (GdkWindow * window,
sx = sy = 1;
cairo_surface_get_device_scale (window_surface, &sx, &sy);
- switch (_gdk_rendering_mode)
+ display = gdk_window_get_display (window);
+ switch (display->rendering_mode)
{
case GDK_RENDERING_MODE_RECORDING:
{