GdkWin32: Clean up gdk_win32_surface_handle_queued_move_resize()
Make that function accept a GdkSurface, not a GdkDrawContext, to make things clearer to people.
This commit is contained in:
@@ -68,7 +68,7 @@ gdk_win32_cairo_context_begin_frame (GdkDrawContext *draw_context,
|
||||
surface = gdk_draw_context_get_surface (draw_context);
|
||||
scale = gdk_surface_get_scale_factor (surface);
|
||||
|
||||
queued_hwnd_rect = gdk_win32_surface_handle_queued_move_resize (draw_context);
|
||||
queued_hwnd_rect = gdk_win32_surface_handle_queued_move_resize (surface);
|
||||
|
||||
width = queued_hwnd_rect.right - queued_hwnd_rect.left;
|
||||
height = queued_hwnd_rect.bottom - queued_hwnd_rect.top;
|
||||
|
||||
@@ -114,7 +114,9 @@ gdk_win32_gl_context_egl_begin_frame (GdkDrawContext *draw_context,
|
||||
GdkColorState **out_color_state,
|
||||
GdkMemoryDepth *out_depth)
|
||||
{
|
||||
gdk_win32_surface_handle_queued_move_resize (draw_context);
|
||||
GdkSurface *surface = gdk_draw_context_get_surface (draw_context);
|
||||
|
||||
gdk_win32_surface_handle_queued_move_resize (surface);
|
||||
|
||||
GDK_DRAW_CONTEXT_CLASS (gdk_win32_gl_context_egl_parent_class)->begin_frame (draw_context, depth, update_area, out_color_state, out_depth);
|
||||
}
|
||||
|
||||
@@ -189,7 +189,7 @@ gdk_win32_gl_context_wgl_begin_frame (GdkDrawContext *draw_context,
|
||||
GdkColorState **out_color_state,
|
||||
GdkMemoryDepth *out_depth)
|
||||
{
|
||||
gdk_win32_surface_handle_queued_move_resize (draw_context);
|
||||
gdk_win32_surface_handle_queued_move_resize (gdk_draw_context_get_surface (draw_context));
|
||||
|
||||
GDK_DRAW_CONTEXT_CLASS (gdk_win32_gl_context_wgl_parent_class)->begin_frame (draw_context, depth, update_area, out_color_state, out_depth);
|
||||
}
|
||||
|
||||
@@ -5117,14 +5117,12 @@ gdk_win32_surface_apply_queued_move_resize (GdkSurface *surface,
|
||||
}
|
||||
|
||||
RECT
|
||||
gdk_win32_surface_handle_queued_move_resize (GdkDrawContext *draw_context)
|
||||
gdk_win32_surface_handle_queued_move_resize (GdkSurface *surface)
|
||||
{
|
||||
GdkSurface *surface;
|
||||
GdkWin32Surface *impl;
|
||||
int scale;
|
||||
RECT queued_hwnd_rect;
|
||||
|
||||
surface = gdk_draw_context_get_surface (draw_context);
|
||||
impl = GDK_WIN32_SURFACE (surface);
|
||||
scale = gdk_surface_get_scale_factor (surface);
|
||||
|
||||
|
||||
@@ -357,7 +357,7 @@ void gdk_win32_surface_move_resize (GdkSurface *surface,
|
||||
GdkSurface *gdk_win32_drag_surface_new (GdkDisplay *display);
|
||||
|
||||
RECT
|
||||
gdk_win32_surface_handle_queued_move_resize (GdkDrawContext *draw_context);
|
||||
gdk_win32_surface_handle_queued_move_resize (GdkSurface *surface);
|
||||
|
||||
#ifdef HAVE_EGL
|
||||
EGLSurface gdk_win32_surface_get_egl_surface (GdkSurface *surface,
|
||||
|
||||
@@ -63,7 +63,9 @@ gdk_win32_vulkan_context_begin_frame (GdkDrawContext *draw_context,
|
||||
GdkColorState **out_color_state,
|
||||
GdkMemoryDepth *out_depth)
|
||||
{
|
||||
gdk_win32_surface_handle_queued_move_resize (draw_context);
|
||||
GdkSurface *surface = gdk_draw_context_get_surface (draw_context);
|
||||
|
||||
gdk_win32_surface_handle_queued_move_resize (surface);
|
||||
|
||||
GDK_DRAW_CONTEXT_CLASS (gdk_win32_vulkan_context_parent_class)->begin_frame (draw_context, depth, update_area, out_color_state, out_depth);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user