Fix: Headless build
authorRay Molenkamp <github@lazydodo.com>
Fri, 4 Oct 2019 19:23:26 +0000 (13:23 -0600)
committerRay Molenkamp <github@lazydodo.com>
Fri, 4 Oct 2019 19:23:26 +0000 (13:23 -0600)
intern/ghost/intern/GHOST_SystemNULL.h
intern/ghost/intern/GHOST_WindowNULL.h

index 93aea87e9a621713b1147c6d3caa8a7f6ef95cce..10138bfc6eb73a5414ddca3d0bc714ae953e12a4 100644 (file)
@@ -114,8 +114,9 @@ class GHOST_SystemNULL : public GHOST_System {
                               GHOST_TWindowState state,
                               GHOST_TDrawingContextType type,
                               GHOST_GLSettings glSettings,
-                              bool exclusive,
-                              const GHOST_TEmbedderWindowID parentWindow)
+                              const bool exclusive,
+                              const bool is_dialog,
+                              const GHOST_IWindow *parentWindow)
   {
     return new GHOST_WindowNULL(this,
                                 title,
index 1d332a7dc3eb3a5370a4c28162c4238583c9f56a..29f3eee7cce66b0772be414b721f0850e9b878e5 100644 (file)
@@ -36,6 +36,11 @@ class GHOST_WindowNULL : public GHOST_Window {
     return NULL;
   }
 
+  GHOST_TSuccess hasCursorShape(GHOST_TStandardCursor)
+  {
+    return GHOST_kSuccess;
+  }
+
   GHOST_WindowNULL(GHOST_SystemNULL *system,
                    const STR_String &title,
                    GHOST_TInt32 left,
@@ -43,7 +48,7 @@ class GHOST_WindowNULL : public GHOST_Window {
                    GHOST_TUns32 width,
                    GHOST_TUns32 height,
                    GHOST_TWindowState state,
-                   const GHOST_TEmbedderWindowID parentWindow,
+                   const GHOST_IWindow *parentWindow,
                    GHOST_TDrawingContextType type,
                    const bool stereoVisual)
       : GHOST_Window(width, height, state, stereoVisual, false), m_system(system)