Encountered an error when attempting to run the program on macOS. The issue was related to mode.getRefreshRate() returning 0, leading to a division by 0 error.
Error stack trace:
To resolve this, I added a check to ensure that in such cases, the default refresh rate of 60 is used.
Looks good now
Encountered an error when attempting to run the program on macOS. The issue was related to
mode.getRefreshRate()
returning 0, leading to a division by 0 error.Error stack trace:
To resolve this, I added a check to ensure that in such cases, the default refresh rate of 60 is used. Looks good now
Tested on macOS Monterey 12.4 and Windows 10