summaryrefslogtreecommitdiff
path: root/gdk/win32/gdkgeometry-win32.c
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2010-08-15 13:49:30 +0200
committerBenjamin Otte <otte@redhat.com>2010-09-26 15:03:00 +0200
commit2c1633699fe5ede37ac40d1b1e1bb572a267f0af (patch)
tree34f46144cdff641f8175de96839ed277852a9b2d /gdk/win32/gdkgeometry-win32.c
parentc250b3fe1d6e62c9deb9e3b968ba403fbe9b4e5e (diff)
downloadgtk+-2c1633699fe5ede37ac40d1b1e1bb572a267f0af.tar.gz
gdk: Rewrite background handling
Now the window background is a cairo_pattern_t. The backends will try to set this as good as they can on the windowing system, but no guarantees are made on wether the windowing system supports the pattern. Also gets rid of GDK_NO_BG as undefined behavior is not a good idea to support, and GDK_NO_BG effectively made the window's contents undefined. It wasn't effectively used in GTK anyway.
Diffstat (limited to 'gdk/win32/gdkgeometry-win32.c')
-rw-r--r--gdk/win32/gdkgeometry-win32.c12
1 files changed, 0 insertions, 12 deletions
diff --git a/gdk/win32/gdkgeometry-win32.c b/gdk/win32/gdkgeometry-win32.c
index a94b81ea92..947095e379 100644
--- a/gdk/win32/gdkgeometry-win32.c
+++ b/gdk/win32/gdkgeometry-win32.c
@@ -152,18 +152,6 @@ tmp_unset_bg (GdkWindow *window)
impl = GDK_WINDOW_IMPL_WIN32 (obj->impl);
impl->no_bg = TRUE;
-
- /*
- * The X version sets background = None to avoid updateing for a moment.
- * Not sure if this could really emulate it.
- */
- if (obj->bg_pixmap != GDK_NO_BG)
- {
- ///* handled in WM_ERASEBKGRND proceesing */;
-
- //HDC hdc = GetDC (GDK_WINDOW_HWND (window));
- //erase_background (window, hdc);
- }
}
static void