summaryrefslogtreecommitdiffhomepage
path: root/main
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2023-02-27 20:00:29 +0100
committerStanislaw Halik <sthalik@misaki.pl>2023-02-27 20:00:29 +0100
commit23718c14e8ae198ee24d97a66335a0415ceafb7e (patch)
tree1ed9e5ecbf67fb5766531b7873d714a5e1d59751 /main
parent11930b1347f4e42bb75f5596b802aa15b22584c9 (diff)
main: fix cmdline dpi scaling policy being ignored
Diffstat (limited to 'main')
-rw-r--r--main/draw.cpp6
1 files changed, 0 insertions, 6 deletions
diff --git a/main/draw.cpp b/main/draw.cpp
index 62c7fbf7..957d3217 100644
--- a/main/draw.cpp
+++ b/main/draw.cpp
@@ -178,12 +178,6 @@ void main_impl::do_update()
void main_impl::drawEvent()
{
-#ifndef __linux__
- if (int index = SDL_GetWindowDisplayIndex(window()); index >= 0)
- if (float hdpi = 96, vdpi = 96; !SDL_GetDisplayDPI(index, nullptr, &hdpi, &vdpi))
- _dpi_scale = { hdpi / 96, vdpi / 96 };
-#endif
-
_shader.set_tint({1, 1, 1, 1});
{