diff options
author | Matthias Clasen <mclasen@redhat.com> | 2014-11-10 14:28:43 -0500 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2014-11-10 14:28:43 -0500 |
commit | 8338b7e4cdc5702f74bfdc239e584f23cb1223ef (patch) | |
tree | d89fbc54a55f0026faa19a530d953e43030114db /gdk/gdkwindow.c | |
parent | 710f3320827b437bbcf4292203439a16e5117813 (diff) | |
download | gtk+-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.c | 4 |
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: { |