diff options
author | sean <43609023+spnda@users.noreply.github.com> | 2021-03-09 10:22:52 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-09 10:22:52 +0100 |
commit | 0464a50ab8f5f6c7028da80cb0d579cdfc84717a (patch) | |
tree | 2bacc79fb89d9140f7edcca56a5cf82a943f3524 /src/video/allegro_v.cpp | |
parent | 64a8c38d2f08de5aee6315e5746cbe5ec73da9e3 (diff) | |
download | openttd-0464a50ab8f5f6c7028da80cb0d579cdfc84717a.tar.xz |
Add: Display refresh rate game option (#8813)
Diffstat (limited to 'src/video/allegro_v.cpp')
-rw-r--r-- | src/video/allegro_v.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/video/allegro_v.cpp b/src/video/allegro_v.cpp index 0c064873b..3d8ca65aa 100644 --- a/src/video/allegro_v.cpp +++ b/src/video/allegro_v.cpp @@ -236,6 +236,16 @@ bool VideoDriver_Allegro::ClaimMousePointer() return true; } +std::vector<int> VideoDriver_Allegro::GetListOfMonitorRefreshRates() +{ + std::vector<int> rates = {}; + + int refresh_rate = get_refresh_rate(); + if (refresh_rate != 0) rates.push_back(refresh_rate); + + return rates; +} + struct AllegroVkMapping { uint16 vk_from; byte vk_count; |