1c0ff6aa23
Later, the aports folder will probably get split up in its own repository. But right now this is simply convenient.
14 lines
475 B
Diff
14 lines
475 B
Diff
diff --git a/libweston/compositor-fbdev.c b/libweston/compositor-fbdev.c
|
|
index 32d71e0..e80a504 100644
|
|
--- a/libweston/compositor-fbdev.c
|
|
+++ b/libweston/compositor-fbdev.c
|
|
@@ -253,7 +253,8 @@ calculate_refresh_rate(struct fb_var_screeninfo *vinfo)
|
|
if (refresh_rate > 200000)
|
|
refresh_rate = 200000; /* cap at 200 Hz */
|
|
|
|
- return refresh_rate;
|
|
+ if (refresh_rate >= 1000) /* at least 1 Hz */
|
|
+ return refresh_rate;
|
|
}
|
|
|
|
return 60 * 1000; /* default to 60 Hz */
|