Skip to content

Commit

Permalink
SDL: Remove defunct -fullscreen argument
Browse files Browse the repository at this point in the history
This closes issue #16
  • Loading branch information
Deltafire committed Jul 8, 2015
1 parent 78386ff commit 85b00bc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 12 deletions.
1 change: 0 additions & 1 deletion docs/readme_unix
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,6 @@ are the following command line options:
-bpp N Set N to either 16 or 24
-swap Swaps the red and blue values in 24 BPP mode
-orientation Valid arguments are NORMAL|ROTATE90CCW|ROTATE90CW
-fullscreen Does what it says

The screen size can be selected in the Config->Layout menu. Fullscreen mode can
be toggled using ALT+Return. Note that these arguments are likely to be removed
Expand Down
17 changes: 6 additions & 11 deletions src/tracker/sdl/SDL_Main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -840,9 +840,9 @@ void crashHandler(int signum)
#endif

void initTracker(pp_uint32 bpp, PPDisplayDevice::Orientations orientation,
bool swapRedBlue, bool fullScreen, bool noSplash)
bool swapRedBlue, bool noSplash)
{
/* Initialize SDL */
/* Initialize SDL */
if ( SDL_Init(SDL_INIT_VIDEO | SDL_INIT_TIMER) < 0 )
{
fprintf(stderr, "Couldn't initialize SDL: %s\n",SDL_GetError());
Expand Down Expand Up @@ -896,8 +896,7 @@ void initTracker(pp_uint32 bpp, PPDisplayDevice::Orientations orientation,
myTracker = new Tracker();

PPSize windowSize = myTracker->getWindowSizeFromDatabase();
if (!fullScreen)
fullScreen = myTracker->getFullScreenFlagFromDatabase();
bool fullScreen = myTracker->getFullScreenFlagFromDatabase();
pp_int32 scaleFactor = myTracker->getScreenScaleFactorFromDatabase();

#ifdef __LOWRES__
Expand Down Expand Up @@ -986,7 +985,7 @@ int main(int argc, char *argv[])

pp_int32 defaultBPP = -1;
PPDisplayDevice::Orientations orientation = PPDisplayDevice::ORIENTATION_NORMAL;
bool swapRedBlue = false, fullScreen = false, noSplash = false;
bool swapRedBlue = false, noSplash = false;
bool recVelocity = false;

// Parse command line
Expand All @@ -1006,10 +1005,6 @@ int main(int argc, char *argv[])
{
swapRedBlue = true;
}
else if ( strcmp(argv[argc], "-fullscreen") == 0)
{
fullScreen = true;
}
else if ( strcmp(argv[argc-1], "-orientation") == 0 )
{
if (strcmp(argv[argc], "NORMAL") == 0)
Expand Down Expand Up @@ -1042,7 +1037,7 @@ int main(int argc, char *argv[])
if (argv[argc][0] == '-')
{
fprintf(stderr,
"Usage: %s [-bpp N] [-swap] [-orientation NORMAL|ROTATE90CCW|ROTATE90CW] [-fullscreen] [-nosplash] [-nonstdkb] [-recvelocity]\n", argv[0]);
"Usage: %s [-bpp N] [-swap] [-orientation NORMAL|ROTATE90CCW|ROTATE90CW] [-nosplash] [-nonstdkb] [-recvelocity]\n", argv[0]);
exit(1);
}
else
Expand All @@ -1066,7 +1061,7 @@ int main(int argc, char *argv[])
PPSystemString oldCwd = path.getCurrent();

globalMutex->lock();
initTracker(defaultBPP, orientation, swapRedBlue, fullScreen, noSplash);
initTracker(defaultBPP, orientation, swapRedBlue, noSplash);
globalMutex->unlock();

#ifdef HAVE_LIBASOUND
Expand Down

0 comments on commit 85b00bc

Please sign in to comment.