Skip to content

Commit c1a8dd9

Browse files
committed
fix
1 parent 4d062c9 commit c1a8dd9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

TOVR/Delphi/TOVR.dpr

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -145,15 +145,15 @@ begin
145145
@DriverGetControllersData:=GetProcAddress(DllHandle, 'GetControllersData');
146146
@DriverSetControllerData:=GetProcAddress(DllHandle, 'SetControllerData');
147147
@DriverSetCentering:=GetProcAddress(DllHandle, 'SetCentering');
148-
if (ScreenControl) and (ScreenIndex <> 0) then
148+
if (ScreenControl) then
149149
ScreenEnable(ScreenIndex);
150150
end;
151151
end;
152152

153153
DLL_PROCESS_DETACH:
154154
if DllHandle <> 0 then begin
155155
FreeLibrary(DllHandle);
156-
if (ScreenControl) and (ScreenIndex <> 0) then
156+
if (ScreenControl) then
157157
ScreenDisable(ScreenIndex);
158158
end;
159159
end;

0 commit comments

Comments
 (0)