Add: Display refresh rate game option (#8813)

This commit is contained in:
sean
2021-03-09 10:22:52 +01:00
committed by GitHub
parent 64a8c38d2f
commit 0464a50ab8
12 changed files with 173 additions and 28 deletions

View File

@@ -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;