From fcf8295e00027aa4d77d91d04a2d7b1685bd8133 Mon Sep 17 00:00:00 2001 From: beaglejoe Date: Sun, 2 Jan 2022 18:55:12 +0000 Subject: [PATCH] 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 --- src/libs/tgfclient/guiscreen.cpp | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/src/libs/tgfclient/guiscreen.cpp b/src/libs/tgfclient/guiscreen.cpp index dde1e61e0..8b1d01f9e 100644 --- a/src/libs/tgfclient/guiscreen.cpp +++ b/src/libs/tgfclient/guiscreen.cpp @@ -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