Fix warnings unused variables

git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@7863 30fe4595-0a0c-4342-8851-515496e4dcbd

Former-commit-id: 0d178baf6b32dcf5c135f2536c4be68eeb713093
Former-commit-id: f15fb447c0e302fe8a2d94852b6f9e214e5239a9
This commit is contained in:
beaglejoe 2022-01-02 18:55:12 +00:00
parent ad0b5feb1b
commit fcf8295e00

View file

@ -432,10 +432,6 @@ bool GfScrInitSDL2(int nWinWidth, int nWinHeight, int nFullScreen)
GfScrStartDisplayId = 0;
}
bool bAlphaChannel =
std::string(GfParmGetStr(hparmScreen, pszScrPropSec, GFSCR_ATT_ALPHACHANNEL,
GFSCR_VAL_YES))
== GFSCR_VAL_YES;
bool bFullScreen;
if (nFullScreen < 0)
bFullScreen =
@ -444,6 +440,15 @@ bool GfScrInitSDL2(int nWinWidth, int nWinHeight, int nFullScreen)
else
bFullScreen = nFullScreen ? true : false;
if(bFullScreen)
bfVideoMode |= SDL_WINDOW_FULLSCREEN;
/* TODO : move and re-implement these?
bool bAlphaChannel =
std::string(GfParmGetStr(hparmScreen, pszScrPropSec, GFSCR_ATT_ALPHACHANNEL,
GFSCR_VAL_YES))
== GFSCR_VAL_YES;
bool bBumpMap =
std::string(GfParmGetStr(hparmScreen, pszScrPropSec, GFSCR_ATT_BUMPMAPPING,
GFSCR_VAL_NO))
@ -456,9 +461,8 @@ bool GfScrInitSDL2(int nWinWidth, int nWinHeight, int nFullScreen)
std::string(GfParmGetStr(hparmScreen, pszScrPropSec, GFSCR_ATT_STEREOVISION,
GFSCR_VAL_NO))
== GFSCR_VAL_YES;
*/
if(bFullScreen)
bfVideoMode |= SDL_WINDOW_FULLSCREEN;
// TODO ?
// Add new values to the config OpenGL Major and Minor