reactos/lib/gdi32/misc
diff -u -r1.56 -r1.57
--- stubs.c 25 Apr 2004 15:31:43 -0000 1.56
+++ stubs.c 25 Apr 2004 15:52:31 -0000 1.57
@@ -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
*
@@ -396,22 +396,6 @@
*/
BOOL
STDCALL
-PtVisible(
- HDC a0,
- int a1,
- int a2
- )
-{
- SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
- return FALSE;
-}
-
-
-/*
- * @unimplemented
- */
-BOOL
-STDCALL
ResizePalette(
HPALETTE a0,
UINT a1
reactos/lib/gdi32/objects
diff -u -r1.31 -r1.32
--- dc.c 25 Apr 2004 15:31:43 -0000 1.31
+++ dc.c 25 Apr 2004 15:52:31 -0000 1.32
@@ -1043,3 +1043,19 @@
{
return NtGdiGetCurrentObject(hdc, uObjectType);
}
+
+
+/*
+ * @implemented
+ */
+BOOL
+STDCALL
+PtVisible(
+ HDC hdc,
+ int X,
+ int Y
+ )
+{
+ return NtGdiPtVisible(hdc, X, Y);
+}
+
reactos/subsys/win32k/objects
diff -u -r1.32 -r1.33
--- cliprgn.c 24 Apr 2004 14:21:37 -0000 1.32
+++ cliprgn.c 25 Apr 2004 15:52:31 -0000 1.33
@@ -16,7 +16,7 @@
* along with this program; if not, write to the Free Software
* 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
#include <windows.h>
@@ -124,9 +124,15 @@
DC *dc;
if (!hrgn)
+ {
+ SetLastWin32Error(ERROR_INVALID_PARAMETER);
return ERROR;
+ }
if (!(dc = DC_LockDc(hdc)))
+ {
+ SetLastWin32Error(ERROR_INVALID_HANDLE);
return ERROR;
+ }
dc->w.flags &= ~DC_DIRTY;
@@ -168,10 +174,14 @@
PDC dc;
if (!(dc = DC_LockDc(hDC)))
+ {
+ SetLastWin32Error(ERROR_INVALID_HANDLE);
return ERROR;
+ }
if(!(Rgn = RGNDATA_LockRgn(dc->w.hGCClipRgn)))
{
DC_UnlockDc( hDC );
+ SetLastWin32Error(ERROR_INVALID_HANDLE);
return ERROR;
}
retval = UnsafeIntGetRgnBox(Rgn, rc);
@@ -219,7 +229,10 @@
PDC dc = DC_LockDc(hDC);
if (!dc)
+ {
+ SetLastWin32Error(ERROR_INVALID_HANDLE);
return ERROR;
+ }
Rect.left = LeftRect;
Rect.top = TopRect;
@@ -262,7 +275,26 @@
int X,
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,
@@ -276,6 +308,7 @@
if (!dc)
{
+ SetLastWin32Error(ERROR_INVALID_HANDLE);
return FALSE;
}