aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/QuickMedia.cpp2
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;