[gtk/fix-win32-gl-resize: 1/2] gdk/win32/gdkcairocontext-win32.c: Make functions shared in backend



commit 3a56da60ddc1b081cfe6b7cde10f6297b4072bd3
Author: Chun-wei Fan <fanchunwei src gnome org>
Date:   Mon Apr 1 14:44:53 2019 +0800

    gdk/win32/gdkcairocontext-win32.c: Make functions shared in backend
    
    Make gdk_win32_surface_get_queued_window_rect() and
    gdk_win32_surface_apply_queued_move_resize() not static functions, as we
    want to use them in gdkglcontext-win32.c, to fix resizing and moving.

 gdk/win32/gdkcairocontext-win32.c | 4 ++--
 gdk/win32/gdksurface-win32.h      | 9 +++++++++
 2 files changed, 11 insertions(+), 2 deletions(-)
---
diff --git a/gdk/win32/gdkcairocontext-win32.c b/gdk/win32/gdkcairocontext-win32.c
index 9a12ddd0d3..c0bc2bb602 100644
--- a/gdk/win32/gdkcairocontext-win32.c
+++ b/gdk/win32/gdkcairocontext-win32.c
@@ -31,7 +31,7 @@
 
 G_DEFINE_TYPE (GdkWin32CairoContext, gdk_win32_cairo_context, GDK_TYPE_CAIRO_CONTEXT)
 
-static void
+void
 gdk_win32_surface_get_queued_window_rect (GdkSurface *surface,
                                           gint        scale,
                                           RECT       *return_window_rect)
@@ -53,7 +53,7 @@ gdk_win32_surface_get_queued_window_rect (GdkSurface *surface,
   *return_window_rect = window_rect;
 }
 
-static void
+void
 gdk_win32_surface_apply_queued_move_resize (GdkSurface *surface,
                                             RECT        window_rect)
 {
diff --git a/gdk/win32/gdksurface-win32.h b/gdk/win32/gdksurface-win32.h
index bdfddeeb24..6caa0d2f25 100644
--- a/gdk/win32/gdksurface-win32.h
+++ b/gdk/win32/gdksurface-win32.h
@@ -384,6 +384,15 @@ void  _gdk_win32_update_layered_window_from_cache (GdkSurface *window,
                                                    gboolean    do_paint);
 
 
+void
+gdk_win32_surface_get_queued_window_rect (GdkSurface *surface,
+                                          gint        scale,
+                                          RECT       *return_window_rect);
+
+void
+gdk_win32_surface_apply_queued_move_resize (GdkSurface *surface,
+                                            RECT        window_rect);
+
 G_END_DECLS
 
 #endif /* __GDK_SURFACE_WIN32_H__ */


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]