Skip to content
This repository has been archived by the owner on Feb 1, 2025. It is now read-only.

Commit

Permalink
Update main.nim
Browse files Browse the repository at this point in the history
  • Loading branch information
Aetopia committed Nov 15, 2022
1 parent 83fb0fe commit bbf18dc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main.nim
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,8 @@ proc enforceRes(poll: int) =
(devmode.dmPelsWidth, devmode.dmPelsHeight) = (dm[0].parseInt().DWORD, dm[1].parseInt().DWORD)
devmode.dmFields = DM_PELSWIDTH or DM_PELSHEIGHT
ShowWindow(hwnd, SW_RESTORE)
if ChangeDisplaySettings(&devmode, 0) == DISP_CHANGE_SUCCESSFUL: break
if ChangeDisplaySettings(&devmode, 0) == DISP_CHANGE_SUCCESSFUL:
BringWindowToTop(hwnd); break
apply = false
sleep(poll)

Expand Down

0 comments on commit bbf18dc

Please # to comment.