gdi32: Get rid of the get_bitmap_image helper.
This commit is contained in:
parent
e423abf5a5
commit
c88f4d452f
|
@ -297,27 +297,6 @@ HBITMAP WINAPI CreateBitmapIndirect( const BITMAP *bmp )
|
|||
}
|
||||
|
||||
|
||||
/* convenience wrapper for GetImage to retrieve the full contents of a bitmap */
|
||||
BOOL get_bitmap_image( HBITMAP hbitmap, BITMAPINFO *info, struct gdi_image_bits *bits )
|
||||
{
|
||||
struct bitblt_coords src;
|
||||
BOOL ret = FALSE;
|
||||
BITMAPOBJ *bmp = GDI_GetObjPtr( hbitmap, OBJ_BITMAP );
|
||||
|
||||
if (bmp)
|
||||
{
|
||||
const struct gdi_dc_funcs *funcs = get_bitmap_funcs( bmp );
|
||||
src.visrect.left = src.x = 0;
|
||||
src.visrect.top = src.y = 0;
|
||||
src.visrect.right = src.width = bmp->bitmap.bmWidth;
|
||||
src.visrect.bottom = src.height = bmp->bitmap.bmHeight;
|
||||
ret = !funcs->pGetImage( NULL, hbitmap, info, bits, &src );
|
||||
GDI_ReleaseObj( hbitmap );
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
||||
/***********************************************************************
|
||||
* GetBitmapBits [GDI32.@]
|
||||
*
|
||||
|
|
|
@ -229,7 +229,6 @@ extern DWORD stretch_bits( const BITMAPINFO *src_info, struct bitblt_coords *src
|
|||
struct gdi_image_bits *bits, int mode ) DECLSPEC_HIDDEN;
|
||||
|
||||
/* bitmap.c */
|
||||
extern BOOL get_bitmap_image( HBITMAP hbitmap, BITMAPINFO *info, struct gdi_image_bits *bits ) DECLSPEC_HIDDEN;
|
||||
extern HBITMAP BITMAP_CopyBitmap( HBITMAP hbitmap ) DECLSPEC_HIDDEN;
|
||||
extern BOOL BITMAP_SetOwnerDC( HBITMAP hbitmap, PHYSDEV physdev ) DECLSPEC_HIDDEN;
|
||||
|
||||
|
|
Loading…
Reference in New Issue