diff options
Diffstat (limited to 'src/ui/ui_layer.h')
| -rw-r--r-- | src/ui/ui_layer.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ui/ui_layer.h b/src/ui/ui_layer.h index eac5273..3108c21 100644 --- a/src/ui/ui_layer.h +++ b/src/ui/ui_layer.h @@ -19,7 +19,7 @@ namespace Donut public: UILayer(); - auto init() -> void; + auto init(float dpi_scale = 1.0f) -> void; auto draw(const UIContext& ctx) -> View; private: @@ -62,6 +62,7 @@ namespace Donut int m_active_tab = 0; int m_tab_request = -1; bool m_first_frame = true; + float m_dpi_scale = 1.0f; int m_gizmo_op = 0; |
