From 23718c14e8ae198ee24d97a66335a0415ceafb7e Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Mon, 27 Feb 2023 20:00:29 +0100 Subject: main: fix cmdline dpi scaling policy being ignored --- main/draw.cpp | 6 ------ 1 file changed, 6 deletions(-) (limited to 'main') 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}); { -- cgit v1.2.3