Skip to content

Commit

Permalink
#3060 0 and 1 are not refresh rates but special values
Browse files Browse the repository at this point in the history
  • Loading branch information
totaam committed Jan 12, 2025
1 parent 2b3eea6 commit 154984d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions xpra/platform/win32/gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -855,6 +855,10 @@ def get_vrefresh() -> int:
log.warn("Warning: failed to query the display vertical refresh rate:")
log.warn(" %s", e)
v = -1
if v in (0, 1):
# as per the docs:
# "A vertical refresh rate value of 0 or 1 represents the display hardware's default refresh rate"
return -1
screenlog("get_vrefresh()=%s", v)
return v

Expand Down

0 comments on commit 154984d

Please sign in to comment.