index 23cfbc1fc3ca8920b518d9e0af0494ae7de90ab7..c6a9e232048d3e5b670ad063c7f92a4753e990a9 100644 (file)
uses
SysUtils,
- e_log, e_graphics, e_input, g_options, g_game, g_main, g_gui, g_weapons, g_console, g_window;
+ e_log, r_graphics, e_input, g_options, g_game, g_main, g_gui, g_weapons, g_console, g_window;
var
angleFire: Boolean;
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;
Exit;
finger := ev.fingerId + 2;
- x := Trunc(ev.x * gScreenWidth);
- y := Trunc(ev.y * gScreenHeight);
+ x := Trunc(ev.x * gWinSizeX);
+ y := Trunc(ev.y * gWinSizeY);
for i := VK_FIRSTKEY to VK_LASTKEY do
begin