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)
This commit is contained in:
Hans Breuer 2003-08-06 22:08:33 +00:00 committed by Hans Breuer
parent 76cb03f43f
commit d3b962ce0f
6 changed files with 17 additions and 0 deletions

View File

@ -1,5 +1,8 @@
2003-08-06 Hans Breuer <hans@breuer.org>
* gdk/win32/gdkpixmap-win32.c (gdk_pixmap_new) :
initialize bits to 0 (probably default on NT)
* gdk/win32/gdkwindow-win32.c (gdk_window_set_icon) :
now it works as intended ;-)

View File

@ -1,5 +1,8 @@
2003-08-06 Hans Breuer <hans@breuer.org>
* gdk/win32/gdkpixmap-win32.c (gdk_pixmap_new) :
initialize bits to 0 (probably default on NT)
* gdk/win32/gdkwindow-win32.c (gdk_window_set_icon) :
now it works as intended ;-)

View File

@ -1,5 +1,8 @@
2003-08-06 Hans Breuer <hans@breuer.org>
* gdk/win32/gdkpixmap-win32.c (gdk_pixmap_new) :
initialize bits to 0 (probably default on NT)
* gdk/win32/gdkwindow-win32.c (gdk_window_set_icon) :
now it works as intended ;-)

View File

@ -1,5 +1,8 @@
2003-08-06 Hans Breuer <hans@breuer.org>
* gdk/win32/gdkpixmap-win32.c (gdk_pixmap_new) :
initialize bits to 0 (probably default on NT)
* gdk/win32/gdkwindow-win32.c (gdk_window_set_icon) :
now it works as intended ;-)

View File

@ -1,5 +1,8 @@
2003-08-06 Hans Breuer <hans@breuer.org>
* gdk/win32/gdkpixmap-win32.c (gdk_pixmap_new) :
initialize bits to 0 (probably default on NT)
* gdk/win32/gdkwindow-win32.c (gdk_window_set_icon) :
now it works as intended ;-)

View File

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