allow more FPS values

This commit is contained in:
Marcel Märtens 2023-02-03 19:28:55 +01:00
parent 51a180f6ae
commit 9113f66d58

View File

@ -172,8 +172,11 @@ pub struct State {
// Resolution, Bit Depth and Refresh Rate // Resolution, Bit Depth and Refresh Rate
video_modes: Vec<VideoMode>, video_modes: Vec<VideoMode>,
} }
const FPS_CHOICES: [Fps; 17] = [ const FPS_CHOICES: [Fps; 20] = [
Fps::Max(5),
Fps::Max(10),
Fps::Max(15), Fps::Max(15),
Fps::Max(20),
Fps::Max(30), Fps::Max(30),
Fps::Max(40), Fps::Max(40),
Fps::Max(50), Fps::Max(50),
@ -191,7 +194,8 @@ const FPS_CHOICES: [Fps; 17] = [
Fps::Max(500), Fps::Max(500),
Fps::Unlimited, Fps::Unlimited,
]; ];
const BG_FPS_CHOICES: [Fps; 20] = [ const BG_FPS_CHOICES: [Fps; 21] = [
Fps::Max(1),
Fps::Max(5), Fps::Max(5),
Fps::Max(10), Fps::Max(10),
Fps::Max(15), Fps::Max(15),