From 3c1293dcf6da526444570acde8e8b2d136673aa7 Mon Sep 17 00:00:00 2001 From: playaz44 Date: Thu, 26 Jan 2023 00:17:01 +0100 Subject: [PATCH] Fix protruding images in hi-res MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Scale image in config files is not enough at high resolutions (e.g. 3840 × 2160). I'm tested value from 0.1 to 1.0 in config and not working, this pr added tested values which works fine. --- cstrike/addons/amxmodx/scripting/map_manager_gui.sma | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/cstrike/addons/amxmodx/scripting/map_manager_gui.sma b/cstrike/addons/amxmodx/scripting/map_manager_gui.sma index 696d38b..8e6ad33 100644 --- a/cstrike/addons/amxmodx/scripting/map_manager_gui.sma +++ b/cstrike/addons/amxmodx/scripting/map_manager_gui.sma @@ -174,6 +174,15 @@ public plugin_precache() g_vecPOVOrigin = origin; // TODO: Move offsets to defines + /******* + *** Fix protruding images outside the monitor in more than 1920x1080 resolution + *** + *** origin[0] += 170.0; + *** origin[1] += 90.0; + *** origin[2] += 48.0; + *** + *******/ + origin[0] += 144.0; origin[1] += 96.0; origin[2] += 48.0;