gdi32: Use NtGdiGetDIBitsInternal for GetDIBits.
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:
parent
55849cd428
commit
0110321640
|
@ -1190,22 +1190,13 @@ BITMAPINFO *copy_packed_dib( const BITMAPINFO *src_info, UINT usage )
|
||||||
}
|
}
|
||||||
|
|
||||||
/******************************************************************************
|
/******************************************************************************
|
||||||
* GetDIBits [GDI32.@]
|
* NtGdiGetDIBitsInternal (win32u.@)
|
||||||
*
|
*
|
||||||
* Retrieves bits of bitmap and copies to buffer.
|
* Retrieves bits of bitmap and copies to buffer.
|
||||||
*
|
|
||||||
* RETURNS
|
|
||||||
* Success: Number of scan lines copied from bitmap
|
|
||||||
* Failure: 0
|
|
||||||
*/
|
*/
|
||||||
INT WINAPI DECLSPEC_HOTPATCH GetDIBits(
|
INT WINAPI NtGdiGetDIBitsInternal( HDC hdc, HBITMAP hbitmap, UINT startscan, UINT lines,
|
||||||
HDC hdc, /* [in] Handle to device context */
|
void *bits, BITMAPINFO *info, UINT coloruse,
|
||||||
HBITMAP hbitmap, /* [in] Handle to bitmap */
|
UINT max_bits, UINT max_info )
|
||||||
UINT startscan, /* [in] First scan line to set in dest bitmap */
|
|
||||||
UINT lines, /* [in] Number of scan lines to copy */
|
|
||||||
LPVOID bits, /* [out] Address of array for bitmap bits */
|
|
||||||
BITMAPINFO * info, /* [out] Address of structure with bitmap data */
|
|
||||||
UINT coloruse) /* [in] RGB or palette index */
|
|
||||||
{
|
{
|
||||||
DC * dc;
|
DC * dc;
|
||||||
BITMAPOBJ * bmp;
|
BITMAPOBJ * bmp;
|
||||||
|
|
|
@ -724,6 +724,15 @@ UINT WINAPI GetSystemPaletteEntries( HDC hdc, UINT start, UINT count, PALETTEENT
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/***********************************************************************
|
||||||
|
* GetDIBits (GDI32.@)
|
||||||
|
*/
|
||||||
|
INT WINAPI DECLSPEC_HOTPATCH GetDIBits( HDC hdc, HBITMAP hbitmap, UINT startscan, UINT lines,
|
||||||
|
void *bits, BITMAPINFO *info, UINT coloruse )
|
||||||
|
{
|
||||||
|
return NtGdiGetDIBitsInternal( hdc, hbitmap, startscan, lines, bits, info, coloruse, 0, 0 );
|
||||||
|
}
|
||||||
|
|
||||||
/***********************************************************************
|
/***********************************************************************
|
||||||
* GetDIBColorTable (GDI32.@)
|
* GetDIBColorTable (GDI32.@)
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -273,6 +273,9 @@ BOOL WINAPI NtGdiGetCharWidthW( HDC hdc, UINT first_char, UINT last_char, WC
|
||||||
BOOL WINAPI NtGdiGetColorAdjustment( HDC hdc, COLORADJUSTMENT *ca );
|
BOOL WINAPI NtGdiGetColorAdjustment( HDC hdc, COLORADJUSTMENT *ca );
|
||||||
BOOL WINAPI NtGdiGetDCDword( HDC hdc, UINT method, DWORD *result );
|
BOOL WINAPI NtGdiGetDCDword( HDC hdc, UINT method, DWORD *result );
|
||||||
BOOL WINAPI NtGdiGetDCPoint( HDC hdc, UINT method, POINT *result );
|
BOOL WINAPI NtGdiGetDCPoint( HDC hdc, UINT method, POINT *result );
|
||||||
|
INT WINAPI NtGdiGetDIBitsInternal( HDC hdc, HBITMAP hbitmap, UINT startscan, UINT lines,
|
||||||
|
void *bits, BITMAPINFO *info, UINT coloruse,
|
||||||
|
UINT max_bits, UINT max_info );
|
||||||
INT WINAPI NtGdiGetDeviceCaps( HDC hdc, INT cap );
|
INT WINAPI NtGdiGetDeviceCaps( HDC hdc, INT cap );
|
||||||
BOOL WINAPI NtGdiGetDeviceGammaRamp( HDC hdc, void *ptr );
|
BOOL WINAPI NtGdiGetDeviceGammaRamp( HDC hdc, void *ptr );
|
||||||
DWORD WINAPI NtGdiGetFontData( HDC hdc, DWORD table, DWORD offset, void *buffer, DWORD length );
|
DWORD WINAPI NtGdiGetFontData( HDC hdc, DWORD table, DWORD offset, void *buffer, DWORD length );
|
||||||
|
|
Loading…
Reference in New Issue