Skip to content

Commit

Permalink
Optics - Increase width of hidePeripheralVision slightly to prevent g…
Browse files Browse the repository at this point in the history
…aps (#1568)
  • Loading branch information
PabstMirror authored Jun 24, 2023
1 parent e89f048 commit 4809ef8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion addons/optics/fnc_initDisplayInterrupt.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ private _ctrlBlackRight = _display ctrlCreate ["RscText", IDC_BLACK_RIGHT];
private _width = THIRD_SCREEN_WIDTH;

if (GVAR(hidePeripheralVision)) then {
_width = 0.5 - (_bodyPosition select 2)/2 - safezoneXAbs;
_width = 0.5 - (_bodyPosition select 2)/2 - safezoneXAbs + pixelW/2;
};

_ctrlBlackLeft ctrlSetBackgroundColor [0,0,0,1];
Expand Down
2 changes: 1 addition & 1 deletion addons/optics/fnc_loadScriptedOptic.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ _ctrlReticleSafezone ctrlCommit 0;
private _width = THIRD_SCREEN_WIDTH;

if (GVAR(hidePeripheralVision)) then {
_width = 0.5 - (_bodyPosition select 2)/2 - safezoneXAbs;
_width = 0.5 - (_bodyPosition select 2)/2 - safezoneXAbs + pixelW/2;
};

_ctrlBlackLeft ctrlSetPositionW _width;
Expand Down

0 comments on commit 4809ef8

Please sign in to comment.