mirror of
https://github.com/reactos/reactos.git
synced 2025-04-20 12:29:56 +00:00
fixed NtGdiPtVisible()
svn path=/trunk/; revision=9225
This commit is contained in:
parent
4043538723
commit
be07990679
1 changed files with 5 additions and 12 deletions
|
@ -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.35 2004/04/25 16:40:39 weiden Exp $ */
|
/* $Id: cliprgn.c,v 1.36 2004/04/26 19:58:45 weiden Exp $ */
|
||||||
|
|
||||||
#undef WIN32_LEAN_AND_MEAN
|
#undef WIN32_LEAN_AND_MEAN
|
||||||
#include <windows.h>
|
#include <windows.h>
|
||||||
|
@ -370,7 +370,7 @@ BOOL STDCALL NtGdiPtVisible(HDC hDC,
|
||||||
int X,
|
int X,
|
||||||
int Y)
|
int Y)
|
||||||
{
|
{
|
||||||
BOOL Ret;
|
HRGN rgn;
|
||||||
DC *dc;
|
DC *dc;
|
||||||
|
|
||||||
if(!(dc = DC_LockDc(hDC)))
|
if(!(dc = DC_LockDc(hDC)))
|
||||||
|
@ -379,17 +379,10 @@ BOOL STDCALL NtGdiPtVisible(HDC hDC,
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(dc->w.hClipRgn)
|
rgn = dc->w.hClipRgn;
|
||||||
{
|
|
||||||
Ret = NtGdiPtInRegion(dc->w.hClipRgn, X, Y);
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
Ret = FALSE;
|
|
||||||
}
|
|
||||||
|
|
||||||
DC_UnlockDc(hDC);
|
DC_UnlockDc(hDC);
|
||||||
return Ret;
|
|
||||||
|
return (rgn ? NtGdiPtInRegion(rgn, X, Y) : FALSE);
|
||||||
}
|
}
|
||||||
|
|
||||||
BOOL STDCALL NtGdiRectVisible(HDC hDC,
|
BOOL STDCALL NtGdiRectVisible(HDC hDC,
|
||||||
|
|
Loading…
Reference in a new issue