GetRelAbs for some reason takes 2 parameters, even though the second
one is ignored at least on Windows NT 3.51 according to Marcus Meissner.
This commit is contained in:
parent
f5d4244f71
commit
e4174d5d57
|
@ -250,7 +250,7 @@ init MAIN_GdiInit
|
|||
@ stdcall GetRandomRgn(long long long) GetRandomRgn
|
||||
@ stdcall GetRasterizerCaps(ptr long) GetRasterizerCaps
|
||||
@ stdcall GetRegionData(long long ptr) GetRegionData
|
||||
@ stdcall GetRelAbs(long) GetRelAbs
|
||||
@ stdcall GetRelAbs(long long) GetRelAbs
|
||||
@ stdcall GetRgnBox(long ptr) GetRgnBox
|
||||
@ stdcall GetStockObject(long) GetStockObject
|
||||
@ stdcall GetStretchBltMode(long) GetStretchBltMode
|
||||
|
|
|
@ -3249,7 +3249,7 @@ INT WINAPI GetPixelFormat(HDC);
|
|||
INT WINAPI GetPolyFillMode(HDC);
|
||||
BOOL WINAPI GetRasterizerCaps(LPRASTERIZER_STATUS,UINT);
|
||||
DWORD WINAPI GetRegionData(HRGN,DWORD,LPRGNDATA);
|
||||
INT WINAPI GetRelAbs(HDC);
|
||||
INT WINAPI GetRelAbs(HDC,DWORD);
|
||||
INT WINAPI GetRgnBox(HRGN,LPRECT);
|
||||
INT WINAPI GetROP2(HDC);
|
||||
HGDIOBJ WINAPI GetStockObject(INT);
|
||||
|
|
12
objects/dc.c
12
objects/dc.c
|
@ -123,6 +123,7 @@ DC *DC_GetDCPtr( HDC hdc )
|
|||
(ptr->wMagic == ENHMETAFILE_DC_MAGIC))
|
||||
return (DC *)ptr;
|
||||
GDI_HEAP_UNLOCK( hdc );
|
||||
SetLastError( ERROR_INVALID_HANDLE );
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
@ -1347,6 +1348,17 @@ UINT WINAPI SetBoundsRect(HDC hdc, const RECT* rect, UINT flags)
|
|||
return DCB_DISABLE; /* bounding rectangle always empty */
|
||||
}
|
||||
|
||||
|
||||
/***********************************************************************
|
||||
* GetRelAbs (GDI32.218)
|
||||
*/
|
||||
INT WINAPI GetRelAbs( HDC hdc, DWORD dwIgnore )
|
||||
{
|
||||
DC * dc = (DC *) GDI_GetObjPtr( hdc, DC_MAGIC );
|
||||
if (!dc) return 0;
|
||||
return dc->w.relAbsMode;
|
||||
}
|
||||
|
||||
/***********************************************************************
|
||||
* Death (GDI.121)
|
||||
*
|
||||
|
|
|
@ -163,11 +163,6 @@ DC_GET_VAL_32( INT, GetROP2, w.ROPmode )
|
|||
*/
|
||||
DC_GET_VAL_16( INT16, GetRelAbs16, w.relAbsMode )
|
||||
|
||||
/***********************************************************************
|
||||
* GetRelAbs (GDI32.218)
|
||||
*/
|
||||
DC_GET_VAL_32( INT, GetRelAbs, w.relAbsMode )
|
||||
|
||||
/***********************************************************************
|
||||
* GetStretchBltMode16 (GDI.88)
|
||||
*/
|
||||
|
|
Loading…
Reference in New Issue