1
0
Fork 0
mirror of https://github.com/AquariaOSE/Aquaria.git synced 2025-10-04 05:13:19 +00:00

Show refresh rate in resolution selector

This commit is contained in:
fgenesis 2015-07-12 20:25:46 +02:00
commit 21545e1a24
5 changed files with 17 additions and 10 deletions

View file

@ -2138,7 +2138,7 @@ void Core::enumerateScreenModes()
SDL_GetDisplayMode(0, i, &mode);
if (mode.w && mode.h && (mode.w > mode.h))
{
screenModes.push_back(ScreenMode(i, mode.w, mode.h));
screenModes.push_back(ScreenMode(i, mode.w, mode.h, mode.refresh_rate));
}
}

View file

@ -70,10 +70,10 @@ enum TimeUpdateType
struct ScreenMode
{
ScreenMode() { idx = x = y = 0; }
ScreenMode(int i, int x, int y) : idx(i), x(x), y(y) {}
ScreenMode() { idx = x = y = hz = 0; }
ScreenMode(int i, int x, int y, int hz) : idx(i), x(x), y(y), hz(hz) {}
int idx, x, y;
int idx, x, y, hz;
};
struct CoreSettings