GdkWin32: Remove unused members from GdkWin32Surface

This commit is contained in:
Luca Bacci 2023-08-02 18:06:23 +02:00
parent eb10af0dac
commit a9082fa5fa
2 changed files with 2 additions and 30 deletions

View File

@ -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);

View File

@ -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 <http://www.gnu.org/licenses/>.
*/
/*
* 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;