mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
Fix color depth selection
This commit is contained in:
parent
23e1378c78
commit
d53ad7eb43
@ -1049,8 +1049,16 @@ impl Window {
|
||||
window
|
||||
.current_monitor()
|
||||
.video_modes()
|
||||
.filter(|mode| mode.bit_depth() >= 24)
|
||||
.max_by_key(|mode| mode.size().width)
|
||||
.expect("No video modes available!!"),
|
||||
.unwrap_or_else(|| {
|
||||
warn!("No video mode with a bit depth of at least 24 found");
|
||||
window
|
||||
.current_monitor()
|
||||
.video_modes()
|
||||
.max_by_key(|mode| mode.size().width)
|
||||
.expect("No video modes available!!")
|
||||
}),
|
||||
)));
|
||||
} else {
|
||||
window.set_fullscreen(None);
|
||||
|
Loading…
Reference in New Issue
Block a user