[CMAKE]
[reactos.git] / subsystems / win32 / win32k / objects / drawing.c
index 2968ee8..351c081 100755 (executable)
@@ -49,7 +49,9 @@ SUCH DAMAGE.
     Modified for ReactOS
  */
 
-#include <w32k.h>
+#include <win32k.h>
+#define _USE_MATH_DEFINES
+#include <math.h>
 
 #define NDEBUG
 #include <debug.h>
@@ -1202,7 +1204,7 @@ IntFillRect( DC *dc,
   psurf = dc->dclevel.pSurface;
   if (psurf == NULL)
   {
-      SetLastWin32Error(ERROR_INVALID_HANDLE);
+      EngSetLastError(ERROR_INVALID_HANDLE);
       return 0;
   }
 
@@ -1276,7 +1278,7 @@ IntFillArc( PDC dc,
   if (!pbrush)
   {
       DPRINT1("FillArc Fail\n");
-      SetLastWin32Error(ERROR_INTERNAL_ERROR);
+      EngSetLastError(ERROR_INTERNAL_ERROR);
       return FALSE;
   }
   // Sort out alignment here.