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:
parent
ad0b5feb1b
commit
fcf8295e00
1 changed files with 10 additions and 6 deletions
|
@ -432,10 +432,6 @@ bool GfScrInitSDL2(int nWinWidth, int nWinHeight, int nFullScreen)
|
||||||
GfScrStartDisplayId = 0;
|
GfScrStartDisplayId = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool bAlphaChannel =
|
|
||||||
std::string(GfParmGetStr(hparmScreen, pszScrPropSec, GFSCR_ATT_ALPHACHANNEL,
|
|
||||||
GFSCR_VAL_YES))
|
|
||||||
== GFSCR_VAL_YES;
|
|
||||||
bool bFullScreen;
|
bool bFullScreen;
|
||||||
if (nFullScreen < 0)
|
if (nFullScreen < 0)
|
||||||
bFullScreen =
|
bFullScreen =
|
||||||
|
@ -444,6 +440,15 @@ bool GfScrInitSDL2(int nWinWidth, int nWinHeight, int nFullScreen)
|
||||||
else
|
else
|
||||||
bFullScreen = nFullScreen ? true : false;
|
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 =
|
bool bBumpMap =
|
||||||
std::string(GfParmGetStr(hparmScreen, pszScrPropSec, GFSCR_ATT_BUMPMAPPING,
|
std::string(GfParmGetStr(hparmScreen, pszScrPropSec, GFSCR_ATT_BUMPMAPPING,
|
||||||
GFSCR_VAL_NO))
|
GFSCR_VAL_NO))
|
||||||
|
@ -456,9 +461,8 @@ bool GfScrInitSDL2(int nWinWidth, int nWinHeight, int nFullScreen)
|
||||||
std::string(GfParmGetStr(hparmScreen, pszScrPropSec, GFSCR_ATT_STEREOVISION,
|
std::string(GfParmGetStr(hparmScreen, pszScrPropSec, GFSCR_ATT_STEREOVISION,
|
||||||
GFSCR_VAL_NO))
|
GFSCR_VAL_NO))
|
||||||
== GFSCR_VAL_YES;
|
== GFSCR_VAL_YES;
|
||||||
|
*/
|
||||||
|
|
||||||
if(bFullScreen)
|
|
||||||
bfVideoMode |= SDL_WINDOW_FULLSCREEN;
|
|
||||||
|
|
||||||
// TODO ?
|
// TODO ?
|
||||||
// Add new values to the config OpenGL Major and Minor
|
// Add new values to the config OpenGL Major and Minor
|
||||||
|
|
Loading…
Reference in a new issue