mirror of
https://github.com/reactos/reactos.git
synced 2025-02-24 17:34:57 +00:00
implemented PtVisible()
svn path=/trunk/; revision=9218
This commit is contained in:
parent
eb9b7d6f5d
commit
6a433d3812
3 changed files with 52 additions and 19 deletions
|
@ -1,4 +1,4 @@
|
||||||
/* $Id: stubs.c,v 1.56 2004/04/25 15:31:43 weiden Exp $
|
/* $Id: stubs.c,v 1.57 2004/04/25 15:52:31 weiden Exp $
|
||||||
*
|
*
|
||||||
* reactos/lib/gdi32/misc/stubs.c
|
* reactos/lib/gdi32/misc/stubs.c
|
||||||
*
|
*
|
||||||
|
@ -391,22 +391,6 @@ PlayMetaFile(
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/*
|
|
||||||
* @unimplemented
|
|
||||||
*/
|
|
||||||
BOOL
|
|
||||||
STDCALL
|
|
||||||
PtVisible(
|
|
||||||
HDC a0,
|
|
||||||
int a1,
|
|
||||||
int a2
|
|
||||||
)
|
|
||||||
{
|
|
||||||
SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
|
|
||||||
return FALSE;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* @unimplemented
|
* @unimplemented
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -1043,3 +1043,19 @@ GetCurrentObject(
|
||||||
{
|
{
|
||||||
return NtGdiGetCurrentObject(hdc, uObjectType);
|
return NtGdiGetCurrentObject(hdc, uObjectType);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/*
|
||||||
|
* @implemented
|
||||||
|
*/
|
||||||
|
BOOL
|
||||||
|
STDCALL
|
||||||
|
PtVisible(
|
||||||
|
HDC hdc,
|
||||||
|
int X,
|
||||||
|
int Y
|
||||||
|
)
|
||||||
|
{
|
||||||
|
return NtGdiPtVisible(hdc, X, Y);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
|
@ -16,7 +16,7 @@
|
||||||
* along with this program; if not, write to the Free Software
|
* along with this program; if not, write to the Free Software
|
||||||
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||||
*/
|
*/
|
||||||
/* $Id: cliprgn.c,v 1.32 2004/04/24 14:21:37 weiden Exp $ */
|
/* $Id: cliprgn.c,v 1.33 2004/04/25 15:52:31 weiden Exp $ */
|
||||||
|
|
||||||
#undef WIN32_LEAN_AND_MEAN
|
#undef WIN32_LEAN_AND_MEAN
|
||||||
#include <windows.h>
|
#include <windows.h>
|
||||||
|
@ -124,9 +124,15 @@ NtGdiSelectVisRgn(HDC hdc, HRGN hrgn)
|
||||||
DC *dc;
|
DC *dc;
|
||||||
|
|
||||||
if (!hrgn)
|
if (!hrgn)
|
||||||
|
{
|
||||||
|
SetLastWin32Error(ERROR_INVALID_PARAMETER);
|
||||||
return ERROR;
|
return ERROR;
|
||||||
|
}
|
||||||
if (!(dc = DC_LockDc(hdc)))
|
if (!(dc = DC_LockDc(hdc)))
|
||||||
|
{
|
||||||
|
SetLastWin32Error(ERROR_INVALID_HANDLE);
|
||||||
return ERROR;
|
return ERROR;
|
||||||
|
}
|
||||||
|
|
||||||
dc->w.flags &= ~DC_DIRTY;
|
dc->w.flags &= ~DC_DIRTY;
|
||||||
|
|
||||||
|
@ -168,10 +174,14 @@ IntGdiGetClipBox(HDC hDC,
|
||||||
PDC dc;
|
PDC dc;
|
||||||
|
|
||||||
if (!(dc = DC_LockDc(hDC)))
|
if (!(dc = DC_LockDc(hDC)))
|
||||||
|
{
|
||||||
|
SetLastWin32Error(ERROR_INVALID_HANDLE);
|
||||||
return ERROR;
|
return ERROR;
|
||||||
|
}
|
||||||
if(!(Rgn = RGNDATA_LockRgn(dc->w.hGCClipRgn)))
|
if(!(Rgn = RGNDATA_LockRgn(dc->w.hGCClipRgn)))
|
||||||
{
|
{
|
||||||
DC_UnlockDc( hDC );
|
DC_UnlockDc( hDC );
|
||||||
|
SetLastWin32Error(ERROR_INVALID_HANDLE);
|
||||||
return ERROR;
|
return ERROR;
|
||||||
}
|
}
|
||||||
retval = UnsafeIntGetRgnBox(Rgn, rc);
|
retval = UnsafeIntGetRgnBox(Rgn, rc);
|
||||||
|
@ -219,7 +229,10 @@ int STDCALL NtGdiIntersectClipRect(HDC hDC,
|
||||||
PDC dc = DC_LockDc(hDC);
|
PDC dc = DC_LockDc(hDC);
|
||||||
|
|
||||||
if (!dc)
|
if (!dc)
|
||||||
|
{
|
||||||
|
SetLastWin32Error(ERROR_INVALID_HANDLE);
|
||||||
return ERROR;
|
return ERROR;
|
||||||
|
}
|
||||||
|
|
||||||
Rect.left = LeftRect;
|
Rect.left = LeftRect;
|
||||||
Rect.top = TopRect;
|
Rect.top = TopRect;
|
||||||
|
@ -262,7 +275,26 @@ BOOL STDCALL NtGdiPtVisible(HDC hDC,
|
||||||
int X,
|
int X,
|
||||||
int Y)
|
int Y)
|
||||||
{
|
{
|
||||||
UNIMPLEMENTED;
|
BOOL Ret;
|
||||||
|
DC *dc;
|
||||||
|
|
||||||
|
if(!(dc = DC_LockDc(hDC)))
|
||||||
|
{
|
||||||
|
SetLastWin32Error(ERROR_INVALID_HANDLE);
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
|
|
||||||
|
if(dc->w.hClipRgn)
|
||||||
|
{
|
||||||
|
Ret = NtGdiPtInRegion(dc->w.hClipRgn, X, Y);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
Ret = FALSE;
|
||||||
|
}
|
||||||
|
|
||||||
|
DC_UnlockDc(hDC);
|
||||||
|
return Ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
BOOL STDCALL NtGdiRectVisible(HDC hDC,
|
BOOL STDCALL NtGdiRectVisible(HDC hDC,
|
||||||
|
@ -276,6 +308,7 @@ BOOL STDCALL NtGdiRectVisible(HDC hDC,
|
||||||
|
|
||||||
if (!dc)
|
if (!dc)
|
||||||
{
|
{
|
||||||
|
SetLastWin32Error(ERROR_INVALID_HANDLE);
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue