forked from AuroraMiddleware/gtk
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:
parent
d3b962ce0f
commit
8bc4568fa8
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user