mirror of
https://github.com/reactos/reactos.git
synced 2024-07-31 16:48:14 +00:00
[GDI32]
- Header describes the bitmap to be created, not the bits we are passed. - Circumvent gcc weirdness (sigh...) svn path=/branches/reactos-yarotows/; revision=47702
This commit is contained in:
parent
974e9c0c41
commit
54e2569bf0
|
@ -279,7 +279,7 @@ WINAPI
|
|||
GdiSetLastError( DWORD dwErrCode );
|
||||
|
||||
DWORD WINAPI GdiGetCodePage(HDC);
|
||||
UINT FASTCALL DIB_BitmapBitsSize( PBITMAPINFO );
|
||||
UINT FASTCALL DIB_BitmapBitsSize( CONST BITMAPINFO* );
|
||||
|
||||
int
|
||||
WINAPI
|
||||
|
|
|
@ -34,7 +34,7 @@ DIB_BitmapMaxBitsSize( PBITMAPINFO Info, UINT ScanLines )
|
|||
|
||||
UINT
|
||||
FASTCALL
|
||||
DIB_BitmapBitsSize( PBITMAPINFO Info )
|
||||
DIB_BitmapBitsSize( CONST BITMAPINFO* Info )
|
||||
{
|
||||
UINT Ret;
|
||||
|
||||
|
@ -476,7 +476,8 @@ CreateDIBitmap( HDC hDC,
|
|||
// For Icm support.
|
||||
// GdiGetHandleUserData(hdc, GDI_OBJECT_TYPE_DC, (PVOID)&pDc_Attr))
|
||||
|
||||
cjBmpScanSize = DIB_BitmapBitsSize((LPBITMAPINFO)Header);
|
||||
/* Mmmh, this is not really safe */
|
||||
cjBmpScanSize = DIB_BitmapBitsSize(Data);
|
||||
DPRINT("pBMI %x, Size bpp %d, dibsize %d, Conv %d, BSS %d\n", Data,bpp,dibsize,ConvertedInfoSize,cjBmpScanSize);
|
||||
|
||||
if ( !width || !height )
|
||||
|
|
Loading…
Reference in a new issue