From a9082fa5faa26a14a0bde18153b4696e0c0c8419 Mon Sep 17 00:00:00 2001 From: Luca Bacci Date: Wed, 2 Aug 2023 18:06:23 +0200 Subject: [PATCH] GdkWin32: Remove unused members from GdkWin32Surface --- gdk/win32/gdksurface-win32.c | 6 ------ gdk/win32/gdksurface-win32.h | 26 ++------------------------ 2 files changed, 2 insertions(+), 30 deletions(-) diff --git a/gdk/win32/gdksurface-win32.c b/gdk/win32/gdksurface-win32.c index 72b65407a2..8df6a25378 100644 --- a/gdk/win32/gdksurface-win32.c +++ b/gdk/win32/gdksurface-win32.c @@ -194,12 +194,6 @@ gdk_surface_win32_finalize (GObject *object) surface->hicon_small = NULL; } - if (surface->cache_surface) - { - cairo_surface_destroy (surface->cache_surface); - surface->cache_surface = NULL; - } - _gdk_win32_surface_unregister_dnd (GDK_SURFACE (surface)); g_assert (surface->transient_owner == NULL); diff --git a/gdk/win32/gdksurface-win32.h b/gdk/win32/gdksurface-win32.h index e4b3e837ba..97d3374d1d 100644 --- a/gdk/win32/gdksurface-win32.h +++ b/gdk/win32/gdksurface-win32.h @@ -1,5 +1,6 @@ /* GDK - The GIMP Drawing Kit * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald + * Copyright (C) 2023 the GTK team * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public @@ -15,13 +16,6 @@ * License along with this library. If not, see . */ -/* - * Modified by the GTK+ Team and others 1997-1999. See the AUTHORS - * file for a list of people on the GTK+ Team. See the ChangeLog - * files for a list of changes. These files are distributed with - * GTK+ at ftp://ftp.gtk.org/pub/gtk/. - */ - #pragma once #include "gdk/win32/gdkprivate-win32.h" @@ -289,23 +283,7 @@ struct _GdkWin32Surface */ guint maximizing : 1; - /* GDK does not keep window contents around, it just draws new - * stuff over the window where changes occurred. - * cache_surface retains old window contents, because - * UpdateLayeredWindow() doesn't do partial redraws. - */ - cairo_surface_t *cache_surface; - - /* Unlike window-backed surfaces, DIB-backed surface - * does not provide a way to query its size, - * so we have to remember it ourselves. - */ - int dib_width; - int dib_height; - - HDC hdc; - int hdc_count; - HBITMAP saved_dc_bitmap; /* Original bitmap for dc */ + HDC hdc; GdkW32DragMoveResizeContext drag_move_resize_context; -- 2.30.2