summaryrefslogtreecommitdiffhomepage
path: root/main/app.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2022-10-15 11:40:19 +0200
committerStanislaw Halik <sthalik@misaki.pl>2022-10-15 11:40:19 +0200
commit4e77740facb23e1c392f180381ccb5446d445724 (patch)
treed629c4d2960546dab2ed759d756674533baac536 /main/app.cpp
parenta99c6ebd1c24e3f645e2c07591cfcfa97a162a6b (diff)
a
Diffstat (limited to 'main/app.cpp')
-rw-r--r--main/app.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/main/app.cpp b/main/app.cpp
index 0c29abf1..33b89231 100644
--- a/main/app.cpp
+++ b/main/app.cpp
@@ -31,8 +31,7 @@ void app::viewportEvent(Platform::Sdl2Application::ViewportEvent& event)
{
update_window_scale(event.windowSize());
GL::defaultFramebuffer.setViewport({{}, event.windowSize()});
- _imgui.relayout(Vector2{event.windowSize()}/event.dpiScaling(),
- event.windowSize(), event.framebufferSize());
+ _imgui.relayout(Vector2{event.windowSize()}, event.windowSize(), event.framebufferSize());
}
@@ -63,7 +62,7 @@ void app::mouseScrollEvent(Platform::Sdl2Application::MouseScrollEvent& event)
void app::textInputEvent(Platform::Sdl2Application::TextInputEvent& event)
{
if (_imgui.handleTextInputEvent(event))
- return event.setAccepted();
+ return keys = {}, event.setAccepted();
}
void app::update(float dt)