gdi32: Move CreateDiscardableBitmap implementation to objects.c.

Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Jacek Caban 2021-07-05 13:41:28 +02:00 committed by Alexandre Julliard
parent 6b3c811c76
commit 0204ebbc67
2 changed files with 10 additions and 18 deletions

View File

@ -474,24 +474,6 @@ static INT BITMAP_GetObject( HGDIOBJ handle, INT count, LPVOID buffer )
}
/******************************************************************************
* CreateDiscardableBitmap [GDI32.@]
*
* Creates a discardable bitmap.
*
* RETURNS
* Success: Handle to bitmap
* Failure: NULL
*/
HBITMAP WINAPI CreateDiscardableBitmap(
HDC hdc, /* [in] Handle to device context */
INT width, /* [in] Bitmap width */
INT height) /* [in] Bitmap height */
{
return CreateCompatibleBitmap( hdc, width, height );
}
/******************************************************************************
* NtGdiGetBitmapDimension (win32u.@)
*

View File

@ -215,3 +215,13 @@ HBITMAP WINAPI CreateBitmap( INT width, INT height, UINT planes,
return NtGdiCreateBitmap( width, height, planes, bpp, bits );
}
/******************************************************************************
* CreateDiscardableBitmap (GDI32.@)
*
* Creates a discardable bitmap.
*/
HBITMAP WINAPI CreateDiscardableBitmap( HDC hdc, INT width, INT height )
{
return CreateCompatibleBitmap( hdc, width, height );
}