pmaports/weston/no_0hz_refresh_rate.patch
Oliver Smith 1c0ff6aa23 Put postmarketOS aports inside pmbootstrap repo
Later, the aports folder will probably get split up in its own repository.
But right now this is simply convenient.
2017-05-26 22:26:25 +02:00

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 */