Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Optics - Increase width of hidePeripheralVision slightly to prevent gaps #1568

Merged
merged 1 commit into from
Jun 24, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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