mirror of
https://github.com/FunkyFr3sh/cnc-ddraw.git
synced 2025-03-15 06:04:49 +01:00
some more tweak for GetClipper and GetPalette
This commit is contained in:
parent
ba04253dfe
commit
e910351120
@ -773,8 +773,10 @@ HRESULT dds_GetCaps(IDirectDrawSurfaceImpl *This, LPDDSCAPS lpDDSCaps)
|
||||
|
||||
HRESULT dds_GetClipper(IDirectDrawSurfaceImpl* This, LPDIRECTDRAWCLIPPER FAR* lpClipper)
|
||||
{
|
||||
if (lpClipper)
|
||||
*lpClipper = (LPDIRECTDRAWCLIPPER)This->clipper;
|
||||
if (!lpClipper)
|
||||
return DDERR_INVALIDPARAMS;
|
||||
|
||||
*lpClipper = (LPDIRECTDRAWCLIPPER)This->clipper;
|
||||
|
||||
if (This->clipper)
|
||||
{
|
||||
@ -834,8 +836,10 @@ HRESULT dds_GetDC(IDirectDrawSurfaceImpl *This, HDC FAR *lpHDC)
|
||||
|
||||
HRESULT dds_GetPalette(IDirectDrawSurfaceImpl *This, LPDIRECTDRAWPALETTE FAR *lplpDDPalette)
|
||||
{
|
||||
if (lplpDDPalette)
|
||||
*lplpDDPalette = (LPDIRECTDRAWPALETTE)This->palette;
|
||||
if (!lplpDDPalette)
|
||||
return DDERR_INVALIDPARAMS;
|
||||
|
||||
*lplpDDPalette = (LPDIRECTDRAWPALETTE)This->palette;
|
||||
|
||||
if (This->palette)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user