diff options
author | Hans Breuer <hans@breuer.org> | 2003-08-06 22:08:33 +0000 |
---|---|---|
committer | Hans Breuer <hans@src.gnome.org> | 2003-08-06 22:08:33 +0000 |
commit | d3b962ce0f062310424712952fceab7c83e1e223 (patch) | |
tree | 7a3bbae9085c87cd594318548048a311b05d65ff /gdk/win32/gdkpixmap-win32.c | |
parent | 76cb03f43f4598fd5372164cc67cf9e35f3ce837 (diff) | |
download | gdk-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.c | 2 |
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); |