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:
parent
e285c26e05
commit
21545e1a24
5 changed files with 17 additions and 10 deletions
|
@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue