no need to call I_FillScreenResolutionsList everywhere

its fine after startup, and when we move our window
This commit is contained in:
Alug committed 2025-11-09 18:52:53 +01:00
1 parent 509fd7eaff
commit 799ae9962f
1 file changed
-6
-6
View File
@@ -1684,8 +1684,6 @@ const char *VID_GetModeName(INT32 modeNum)
if (modeNum > MAXWINMODES)
return NULL;
I_FillScreenResolutionsList();
return windowedModes[modeNum].name;
}
@@ -1693,8 +1691,6 @@ INT32 VID_GetModeForSize(INT32 w, INT32 h)
{
int i;
I_FillScreenResolutionsList();
for (i = 0; i < MAXWINMODES; i++)
{
if (windowedModes[i].w == w && windowedModes[i].h == h)
@@ -1748,8 +1744,6 @@ INT32 VID_SetMode(INT32 modeNum)
{
vid.recalc = true;
I_FillScreenResolutionsList();
if (modeNum >= 0 && modeNum < MAXWINMODES)
{
vid.width = windowedModes[modeNum].w;