[CMAKE]
[reactos.git] / subsystems / win32 / win32k / objects / drawing.c
index adc6e9c..351c081 100755 (executable)
@@ -50,6 +50,8 @@ SUCH DAMAGE.
  */
 
 #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.