aboutsummaryrefslogtreecommitdiff
path: root/include/cru/platform
diff options
context:
space:
mode:
Diffstat (limited to 'include/cru/platform')
-rw-r--r--include/cru/platform/GraphicsBase.h4
-rw-r--r--include/cru/platform/gui/UiApplication.h5
2 files changed, 3 insertions, 6 deletions
diff --git a/include/cru/platform/GraphicsBase.h b/include/cru/platform/GraphicsBase.h
index c9f7626c..b0f653ef 100644
--- a/include/cru/platform/GraphicsBase.h
+++ b/include/cru/platform/GraphicsBase.h
@@ -53,8 +53,8 @@ inline String ToString(const Point& point) {
}
struct Size final {
- static const Size kMax;
- static const Size kZero;
+ static CRU_PLATFORM_API const Size kMax;
+ static CRU_PLATFORM_API const Size kZero;
constexpr Size() = default;
constexpr Size(const float width, const float height)
diff --git a/include/cru/platform/gui/UiApplication.h b/include/cru/platform/gui/UiApplication.h
index 3f36c26c..b44a450f 100644
--- a/include/cru/platform/gui/UiApplication.h
+++ b/include/cru/platform/gui/UiApplication.h
@@ -15,10 +15,7 @@ namespace cru::platform::gui {
// The entry point of a ui application.
struct CRU_PLATFORM_GUI_API IUiApplication : public virtual IPlatformResource {
public:
- static IUiApplication* GetInstance() { return instance; }
-
- private:
- static IUiApplication* instance;
+ static IUiApplication* GetInstance();
protected:
IUiApplication();