Remove redundant CImageInfo variable

It's a POD object that is only zeroed and otherwise unused, so it's redundant.
This commit is contained in:
Robert Müller 2023-06-03 12:16:37 +02:00
parent f2d8bad506
commit b6cdbfbb2f

View file

@ -3321,13 +3321,8 @@ int CGraphics_Threaded::GetVideoModes(CVideoMode *pModes, int MaxModes, int Scre
return Count;
}
// add videomodes command
CImageInfo Image;
mem_zero(&Image, sizeof(Image));
int NumModes = 0;
m_pBackend->GetVideoModes(pModes, MaxModes, &NumModes, m_ScreenHiDPIScale, g_Config.m_GfxDesktopWidth, g_Config.m_GfxDesktopHeight, Screen);
return NumModes;
}