implemented OffsetClipRgn()
Modified: trunk/reactos/subsys/win32k/objects/cliprgn.c

Modified: trunk/reactos/subsys/win32k/objects/cliprgn.c
--- trunk/reactos/subsys/win32k/objects/cliprgn.c	2005-08-03 20:10:32 UTC (rev 17030)
+++ trunk/reactos/subsys/win32k/objects/cliprgn.c	2005-08-03 20:15:58 UTC (rev 17031)
@@ -187,7 +187,7 @@
 			   LPRECT  rc)
 {
   int Ret;
-  NTSTATUS Status;
+  NTSTATUS Status = STATUS_SUCCESS;
   RECT Saferect;
 
   Ret = IntGdiGetClipBox(hDC, &Saferect);
@@ -327,8 +327,28 @@
                        int  XOffset,
                        int  YOffset)
 {
-  UNIMPLEMENTED;
-  return 0;
+  INT Result;
+  DC *dc;
+
+  if(!(dc = DC_LockDc(hDC)))
+  {
+    SetLastWin32Error(ERROR_INVALID_HANDLE);
+    return ERROR;
+  }
+
+  if(dc->w.hClipRgn != NULL)
+  {
+    Result = NtGdiOffsetRgn(dc->w.hClipRgn,
+                            XOffset,
+                            YOffset);
+  }
+  else
+  {
+    Result = NULLREGION;
+  }
+  
+  DC_UnlockDc(dc);
+  return Result;
 }
 
 BOOL STDCALL NtGdiPtVisible(HDC  hDC,