mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2024-11-25 13:51:43 +00:00
Quartz is evil, we need to ask for a new modeList
This commit is contained in:
parent
7b6aeefea0
commit
2b781d82d5
1 changed files with 9 additions and 0 deletions
|
@ -1577,6 +1577,7 @@ const char *VID_GetModeName(INT32 modeNum)
|
||||||
INT32 VID_GetModeForSize(INT32 w, INT32 h)
|
INT32 VID_GetModeForSize(INT32 w, INT32 h)
|
||||||
{
|
{
|
||||||
INT32 matchMode = -1, i;
|
INT32 matchMode = -1, i;
|
||||||
|
VID_PrepareModeList();
|
||||||
if (USE_FULLSCREEN && numVidModes != -1)
|
if (USE_FULLSCREEN && numVidModes != -1)
|
||||||
{
|
{
|
||||||
for (i=firstEntry; i<numVidModes; i++)
|
for (i=firstEntry; i<numVidModes; i++)
|
||||||
|
@ -1642,6 +1643,14 @@ void VID_PrepareModeList(void)
|
||||||
INT32 i;
|
INT32 i;
|
||||||
|
|
||||||
firstEntry = 0;
|
firstEntry = 0;
|
||||||
|
|
||||||
|
#ifdef HWRENDER
|
||||||
|
if (rendermode == render_opengl)
|
||||||
|
modeList = SDL_ListModes(NULL, SDL_OPENGL|SDL_FULLSCREEN);
|
||||||
|
else
|
||||||
|
#endif
|
||||||
|
modeList = SDL_ListModes(NULL, surfaceFlagsF|SDL_HWSURFACE); //Alam: At least hardware surface
|
||||||
|
|
||||||
if (disable_fullscreen?0:cv_fullscreen.value) // only fullscreen needs preparation
|
if (disable_fullscreen?0:cv_fullscreen.value) // only fullscreen needs preparation
|
||||||
{
|
{
|
||||||
if (-1 != numVidModes)
|
if (-1 != numVidModes)
|
||||||
|
|
Loading…
Reference in a new issue