diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2022-12-01 23:58:00 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2022-12-01 23:58:00 +0100 |
commit | dee84335974f43f4d3661c5c7df481310357c24c (patch) | |
tree | 0ec8900c6d4768a7ba4af851e010c495c0b74585 /main/main-impl.cpp | |
parent | c9ed7f5a14037a87f74650e4426056cbdec59116 (diff) |
main, imgui: use magnum's virtual dpi scale
Diffstat (limited to 'main/main-impl.cpp')
-rw-r--r-- | main/main-impl.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/main/main-impl.cpp b/main/main-impl.cpp index 0790a0d2..1da2d4ee 100644 --- a/main/main-impl.cpp +++ b/main/main-impl.cpp @@ -13,7 +13,7 @@ struct world& main_impl::world() noexcept { return _world; } SDL_Window* main_impl::window() noexcept { return Sdl2Application::window(); } fm_settings& main_impl::settings() noexcept { return s; } const fm_settings& main_impl::settings() const noexcept { return s; } -Vector2i main_impl::window_size() const noexcept { return windowSize(); } +Vector2i main_impl::window_size() const noexcept { return framebufferSize(); } tile_shader& main_impl::shader() noexcept { return _shader; } const tile_shader& main_impl::shader() const noexcept { return _shader; } bool main_impl::is_text_input_active() const noexcept { return const_cast<main_impl&>(*this).isTextInputActive(); } @@ -22,7 +22,7 @@ void main_impl::stop_text_input() noexcept { stopTextInput(); } int main_impl::exec() { - recalc_viewport(windowSize()); + recalc_viewport(framebufferSize(), windowSize()); return Sdl2Application::exec(); } |