[gtk/wip/otte/gdk-headers: 6/7] win32: Fix gcc warnings
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/otte/gdk-headers: 6/7] win32: Fix gcc warnings
- Date: Fri, 24 Sep 2021 19:45:23 +0000 (UTC)
commit bb649d7d66af11f9c5e685f5d4ebbbf8fb62b0a5
Author: Benjamin Otte <otte redhat com>
Date: Fri Sep 24 21:22:12 2021 +0200
win32: Fix gcc warnings
gdk/win32/gdkcairocontext-win32.c | 7 -------
1 file changed, 7 deletions(-)
---
diff --git a/gdk/win32/gdkcairocontext-win32.c b/gdk/win32/gdkcairocontext-win32.c
index a46891d8a4..9eb115ffcd 100644
--- a/gdk/win32/gdkcairocontext-win32.c
+++ b/gdk/win32/gdkcairocontext-win32.c
@@ -57,14 +57,12 @@ gdk_win32_cairo_context_begin_frame (GdkDrawContext *draw_context,
{
GdkWin32CairoContext *self = GDK_WIN32_CAIRO_CONTEXT (draw_context);
GdkSurface *surface;
- GdkWin32Surface *impl;
int scale;
cairo_t *cr;
int width, height;
RECT queued_window_rect;
surface = gdk_draw_context_get_surface (draw_context);
- impl = GDK_WIN32_SURFACE (surface);
scale = gdk_surface_get_scale_factor (surface);
queued_window_rect = gdk_win32_surface_handle_queued_move_resize (draw_context);
@@ -121,11 +119,6 @@ gdk_win32_cairo_context_end_frame (GdkDrawContext *draw_context,
cairo_region_t *painted)
{
GdkWin32CairoContext *self = GDK_WIN32_CAIRO_CONTEXT (draw_context);
- GdkSurface *surface;
- int scale;
-
- surface = gdk_draw_context_get_surface (draw_context);
- scale = gdk_surface_get_scale_factor (surface);
/* The code to resize double-buffered windows immediately
* before blitting the buffer contents onto them used
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]