From: DeaDDooMER Date: Tue, 14 Feb 2023 13:44:18 +0000 (+0300) Subject: gl: do not scale vitrual keyboard with r_resoulution scale X-Git-Url: http://deadsoftware.ru/gitweb?a=commitdiff_plain;h=1c54354a39aea662edb6219463d22809d3f97981;p=d2df-sdl.git gl: do not scale vitrual keyboard with r_resoulution scale --- diff --git a/src/game/renders/opengl/r_render.pas b/src/game/renders/opengl/r_render.pas index 95c8967..791a29f 100644 --- a/src/game/renders/opengl/r_render.pas +++ b/src/game/renders/opengl/r_render.pas @@ -1260,6 +1260,7 @@ implementation {$ENDIF} {$IFDEF ENABLE_TOUCH} + glScalef(1 / r_pixel_scale, 1 / r_pixel_scale, 0); r_Touch_Draw; {$ENDIF} diff --git a/src/game/renders/opengl/r_touch.pas b/src/game/renders/opengl/r_touch.pas index 4f0fb82..2a02aaa 100644 --- a/src/game/renders/opengl/r_touch.pas +++ b/src/game/renders/opengl/r_touch.pas @@ -100,7 +100,7 @@ implementation dpi := 96; {$ENDIF} - sz := Trunc(g_touch_size * dpi); sw := gScreenWidth; sh := gScreenHeight; + sz := Trunc(g_touch_size * dpi); sw := gWinSizeX; sh := gWinSizeY; x := 0; y := Round(sh * g_touch_offset / 100); w := sz; h := sz;