From 54fdc23fdd7149c6e18991aa56f4861a8a5d4e03 Mon Sep 17 00:00:00 2001 From: crupest Date: Wed, 8 Jun 2022 17:26:30 +0800 Subject: ... --- src/platform/bootstrap/Bootstrap.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/platform') 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 } -- cgit v1.2.3