aboutsummaryrefslogtreecommitdiff
path: root/src/platform
diff options
context:
space:
mode:
Diffstat (limited to 'src/platform')
-rw-r--r--src/platform/bootstrap/Bootstrap.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/platform/bootstrap/Bootstrap.cpp b/src/platform/bootstrap/Bootstrap.cpp
index 30099b96..cfb3697a 100644
--- a/src/platform/bootstrap/Bootstrap.cpp
+++ b/src/platform/bootstrap/Bootstrap.cpp
@@ -3,9 +3,11 @@
#ifdef CRU_PLATFORM_WINDOWS
#include "cru/platform/graphics/direct2d/Factory.h"
#include "cru/platform/gui/win/UiApplication.h"
-#else
+#elifdef CRU_PLATFORM_OSX
#include "cru/platform/graphics/quartz/Factory.h"
#include "cru/platform/gui/osx/UiApplication.h"
+#else
+#include "cru/platform/graphics/cairo/CairoGraphicsFactory.h"
#endif
namespace cru::platform::bootstrap {
@@ -26,7 +28,7 @@ CreateGraphicsFactory() {
#elif CRU_PLATFORM_OSX
return new cru::platform::graphics::quartz::QuartzGraphicsFactory();
#else
- return nullptr;
+ return new cru::platform::graphics::cairo::CairoGraphicsFactory();
#endif
}