mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
Make video mode selection slightly better
This commit is contained in:
parent
d25508e2df
commit
6435464d00
@ -1054,10 +1054,13 @@ impl Window {
|
|||||||
window
|
window
|
||||||
.current_monitor()
|
.current_monitor()
|
||||||
.video_modes()
|
.video_modes()
|
||||||
.filter(|mode| mode.bit_depth() >= 24)
|
.filter(|mode| mode.bit_depth() >= 24 && mode.refresh_rate() >= 59)
|
||||||
.max_by_key(|mode| mode.size().width)
|
.max_by_key(|mode| mode.size().width)
|
||||||
.unwrap_or_else(|| {
|
.unwrap_or_else(|| {
|
||||||
warn!("No video mode with a bit depth of at least 24 found");
|
warn!(
|
||||||
|
"No video mode with a bit depth of at least 24 and a refresh rate of \
|
||||||
|
at least 60Hz found"
|
||||||
|
);
|
||||||
window
|
window
|
||||||
.current_monitor()
|
.current_monitor()
|
||||||
.video_modes()
|
.video_modes()
|
||||||
|
Loading…
Reference in New Issue
Block a user