mirror of
https://github.com/hedge-dev/UnleashedRecomp.git
synced 2026-02-17 19:21:11 +00:00
test without GetDisplayModes in lock WindowSize.LockCallback
This commit is contained in:
parent
5e8695a157
commit
892fd5a570
1 changed files with 1 additions and 1 deletions
|
|
@ -536,7 +536,7 @@ std::vector<SDL_DisplayMode> GameWindow::GetDisplayModes(bool ignoreInvalidModes
|
|||
int GameWindow::FindNearestDisplayMode()
|
||||
{
|
||||
auto result = -1;
|
||||
auto displayModes = GetDisplayModes();
|
||||
auto displayModes = std::vector<SDL_DisplayMode>();
|
||||
auto currentDiff = std::numeric_limits<int>::max();
|
||||
|
||||
for (int i = 0; i < displayModes.size(); i++)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue