diff options
author | dec05eba <dec05eba@protonmail.com> | 2020-09-14 04:48:31 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2020-09-14 04:48:31 +0200 |
commit | f270df634d9391f0488df04e2fc466b53dab5ee3 (patch) | |
tree | 6eca6e1631a951ce4231c1ce3f5d965cb21ddcde | |
parent | af01062b0a207c106a6ebb599993fb72a43484c5 (diff) |
aa
-rw-r--r-- | src/QuickMedia.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/QuickMedia.cpp b/src/QuickMedia.cpp index b7ed090..68111a3 100644 --- a/src/QuickMedia.cpp +++ b/src/QuickMedia.cpp @@ -58,6 +58,8 @@ static int get_monitor_max_hz(Display *display) { max_hz = std::max(max_hz, screen_res->modes[i].dotClock/total); } XRRFreeScreenResources(screen_res); + if(max_hz == 0) + max_hz = 60; return std::min(max_hz, 144UL); } return 60; |