A free Windows-compatible Operating System - mirrored from GitHub
Go to file
Magnus Olsen 973109beb4 Remove old hack I implmeneted in NtGdiCreateBitmap it is height == 0 or width == 0, it create 1x1 1Bpp we can remove this hack now.
BugFix CreateBitmapIndirect, the code have been tested in reactos and windows, include abiword 
1. the bmWidthBytes must be align with 2 and it must be 2 or higher like windows xp/2003 and msdn
2. Do not do direcly call to NtGdiCreateBitmap use CreateBitmap so we getting same behoir for 1x1 1Bpp bitmap.
3. This will also take care of handle leaks for bitmap that being create with height = 0,  width = 0 and do not delete the object.
4. Windowss does not check if the incoming bitmap is NULL, this behoir to make it more compatible. 




svn path=/trunk/; revision=33427
2008-05-11 08:20:18 +00:00
irc
reactos Remove old hack I implmeneted in NtGdiCreateBitmap it is height == 0 or width == 0, it create 1x1 1Bpp we can remove this hack now. 2008-05-11 08:20:18 +00:00
rosapps
rostests adding test to NtGdiCreateBitmap show it does not accpect height = 0 and widith = 0 2008-05-11 08:09:02 +00:00
wallpaper