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)

	now really ...
This commit is contained in:
Hans Breuer 2003-08-06 22:13:48 +00:00 committed by Hans Breuer
parent d3b962ce0f
commit 8bc4568fa8

View File

@ -304,7 +304,7 @@ gdk_pixmap_new (GdkDrawable *drawable,
drawable_impl->handle = hbitmap;
/* initialize */
//memset (bits, 0, (bmi.bmiHeader.biBitCount * width * height) / 8);
memset (bits, 0, (bmi.bmiHeader.biBitCount * width * height) / 8);
pixmap_impl->bits = bits;
gdk_win32_handle_table_insert (&GDK_PIXMAP_HBITMAP (pixmap), pixmap);