summaryrefslogtreecommitdiff
path: root/src/video/allegro_v.cpp
diff options
context:
space:
mode:
authorsean <43609023+spnda@users.noreply.github.com>2021-03-09 10:22:52 +0100
committerGitHub <noreply@github.com>2021-03-09 10:22:52 +0100
commit0464a50ab8f5f6c7028da80cb0d579cdfc84717a (patch)
tree2bacc79fb89d9140f7edcca56a5cf82a943f3524 /src/video/allegro_v.cpp
parent64a8c38d2f08de5aee6315e5746cbe5ec73da9e3 (diff)
downloadopenttd-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.cpp10
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;