Commit 270f7bed authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

gdi32: Introduce NtGdiCreateBitmap.

parent 505a6b9c
......@@ -91,12 +91,12 @@ HBITMAP WINAPI CreateCompatibleBitmap( HDC hdc, INT width, INT height)
/******************************************************************************
* CreateBitmap [GDI32.@]
* NtGdiCreateBitmap (win32u.@)
*
* Creates a bitmap with the specified info.
*/
HBITMAP WINAPI CreateBitmap( INT width, INT height, UINT planes,
UINT bpp, const void *bits )
HBITMAP WINAPI NtGdiCreateBitmap( INT width, INT height, UINT planes,
UINT bpp, const void *bits )
{
BITMAPOBJ *bmpobj;
HBITMAP hbitmap;
......@@ -110,7 +110,7 @@ HBITMAP WINAPI CreateBitmap( INT width, INT height, UINT planes,
}
if (!width || !height)
return GetStockObject( DEFAULT_BITMAP );
return 0;
if (height < 0)
height = -height;
......
......@@ -201,3 +201,17 @@ HBITMAP WINAPI CreateBitmapIndirect( const BITMAP *bmp )
return CreateBitmap( bmp->bmWidth, bmp->bmHeight, bmp->bmPlanes,
bmp->bmBitsPixel, bmp->bmBits );
}
/******************************************************************************
* CreateBitmap (GDI32.@)
*
* Creates a bitmap with the specified info.
*/
HBITMAP WINAPI CreateBitmap( INT width, INT height, UINT planes,
UINT bpp, const void *bits )
{
if (!width || !height)
return GetStockObject( STOCK_LAST + 1 ); /* default 1x1 bitmap */
return NtGdiCreateBitmap( width, height, planes, bpp, bits );
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment