summaryrefslogtreecommitdiff
path: root/gdk/win32/gdkpixmap-win32.c
diff options
context:
space:
mode:
authorHans Breuer <hans@breuer.org>2003-08-06 22:08:33 +0000
committerHans Breuer <hans@src.gnome.org>2003-08-06 22:08:33 +0000
commitd3b962ce0f062310424712952fceab7c83e1e223 (patch)
tree7a3bbae9085c87cd594318548048a311b05d65ff /gdk/win32/gdkpixmap-win32.c
parent76cb03f43f4598fd5372164cc67cf9e35f3ce837 (diff)
downloadgdk-pixbuf-d3b962ce0f062310424712952fceab7c83e1e223.tar.gz
initialize bits to 0 (probably default on NT)
2003-08-06 Hans Breuer <hans@breuer.org> * gdk/win32/gdkpixmap-win32.c (gdk_pixmap_new) : initialize bits to 0 (probably default on NT)
Diffstat (limited to 'gdk/win32/gdkpixmap-win32.c')
-rw-r--r--gdk/win32/gdkpixmap-win32.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gdk/win32/gdkpixmap-win32.c b/gdk/win32/gdkpixmap-win32.c
index a3af93d19..05de4bb54 100644
--- a/gdk/win32/gdkpixmap-win32.c
+++ b/gdk/win32/gdkpixmap-win32.c
@@ -303,6 +303,8 @@ gdk_pixmap_new (GdkDrawable *drawable,
}
drawable_impl->handle = hbitmap;
+ /* initialize */
+ //memset (bits, 0, (bmi.bmiHeader.biBitCount * width * height) / 8);
pixmap_impl->bits = bits;
gdk_win32_handle_table_insert (&GDK_PIXMAP_HBITMAP (pixmap), pixmap);