diff --git a/addons/spottingscope/script_component.hpp b/addons/spottingscope/script_component.hpp index 4149364d92..0a730e13d6 100644 --- a/addons/spottingscope/script_component.hpp +++ b/addons/spottingscope/script_component.hpp @@ -21,14 +21,15 @@ #define IDC_BLACK_LEFT 10002 #define IDC_BLACK_RIGHT 10003 -#define MAGIC_SCOPE_NUMBER 0.0775 +#define MAGIC_SCOPE_NUMBER 0.0235 +//#define MAGIC_SCOPE_NUMBER (uiNamespace getVariable ['magic', 1]) -#define POS_X_BASE(size) safezoneX + 0.5 * safezoneW - 0.5 * (size) * (getResolution select 5) -#define POS_Y_BASE(size) safezoneY + 0.5 * safezoneH - 0.5 * (size) * (getResolution select 5) * 4/3 -#define POS_W_BASE(size) (size) * (getResolution select 5) -#define POS_H_BASE(size) (size) * (getResolution select 5) * 4/3 +#define POS_X_BASE(size) safezoneX + 0.5 * safezoneW - 0.5 * (size) / (getResolution select 5) +#define POS_Y_BASE(size) safezoneY + 0.5 * safezoneH - 0.5 * (size) / (getResolution select 5) * 4/3 +#define POS_W_BASE(size) (size) / (getResolution select 5) +#define POS_H_BASE(size) (size) / (getResolution select 5) * 4/3 -#define SIZEX 3.5 +#define SIZEX 1.05 #define POS_X QUOTE(POS_X_BASE(SIZEX)) #define POS_Y QUOTE(POS_Y_BASE(SIZEX))