diff options
author | Benjamin Otte <otte@redhat.com> | 2016-11-30 15:52:22 +0100 |
---|---|---|
committer | Benjamin Otte <otte@redhat.com> | 2016-11-30 15:52:22 +0100 |
commit | efd04b47aa9089d9d276528423786b0e0d605c5f (patch) | |
tree | 3c6f076c996a185ba9cab4283c0fcdde55a43e96 /gdk/win32/gdkwindow-win32.c | |
parent | bdcfc17c436ae3e76ec8f196ff7c1e21ad48bb35 (diff) | |
download | gtk+-efd04b47aa9089d9d276528423786b0e0d605c5f.tar.gz |
gdk: Make GdkDrawingContext not per-backend
No backend is using it, and we can put the backend-specific drawing code
into GdkGLContext.
Diffstat (limited to 'gdk/win32/gdkwindow-win32.c')
-rw-r--r-- | gdk/win32/gdkwindow-win32.c | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/gdk/win32/gdkwindow-win32.c b/gdk/win32/gdkwindow-win32.c index f5c4be4cc1..cddd9ef1b5 100644 --- a/gdk/win32/gdkwindow-win32.c +++ b/gdk/win32/gdkwindow-win32.c @@ -41,7 +41,6 @@ #include "gdkwin32window.h" #include "gdkglcontext-win32.h" #include "gdkdisplay-win32.h" -#include "gdkdrawingcontext-win32.h" #include <cairo-win32.h> #include <dwmapi.h> @@ -6026,16 +6025,6 @@ _gdk_win32_window_get_unscaled_size (GdkWindow *window, *unscaled_height = impl->unscaled_height; } -static GdkDrawingContext * -gdk_win32_window_create_draw_context (GdkWindow *window, - const cairo_region_t *region) -{ - return g_object_new (GDK_TYPE_WIN32_DRAWING_CONTEXT, - "window", window, - "clip", region, - NULL); -} - static void gdk_window_impl_win32_class_init (GdkWindowImplWin32Class *klass) { @@ -6125,7 +6114,6 @@ gdk_window_impl_win32_class_init (GdkWindowImplWin32Class *klass) impl_class->change_property = _gdk_win32_window_change_property; impl_class->delete_property = _gdk_win32_window_delete_property; impl_class->create_gl_context = _gdk_win32_window_create_gl_context; - impl_class->create_draw_context = gdk_win32_window_create_draw_context; impl_class->invalidate_for_new_frame = _gdk_win32_window_invalidate_for_new_frame; impl_class->get_scale_factor = _gdk_win32_window_get_scale_factor; impl_class->get_unscaled_size = _gdk_win32_window_get_unscaled_size; |