mirror of
https://github.com/gnif/LookingGlass.git
synced 2025-08-09 20:24:14 +00:00
Add option to skip splash screen fade out
This commit is contained in:

committed by
Geoffrey McRae

parent
a15de57e58
commit
66df00cee2
@@ -213,6 +213,13 @@ static struct Option options[] =
|
||||
.type = OPTION_TYPE_BOOL,
|
||||
.value.x_bool = true,
|
||||
},
|
||||
{
|
||||
.module = "win",
|
||||
.name = "quickSplash",
|
||||
.description = "Skip fading out the splash screen when a connection is established",
|
||||
.type = OPTION_TYPE_BOOL,
|
||||
.value.x_bool = false,
|
||||
},
|
||||
|
||||
// input options
|
||||
{
|
||||
@@ -401,6 +408,7 @@ bool config_load(int argc, char * argv[])
|
||||
params.ignoreQuit = option_get_bool ("win", "ignoreQuit" );
|
||||
params.noScreensaver = option_get_bool ("win", "noScreensaver");
|
||||
params.showAlerts = option_get_bool ("win", "alerts" );
|
||||
params.quickSplash = option_get_bool ("win", "quickSplash" );
|
||||
|
||||
params.grabKeyboard = option_get_bool ("input", "grabKeyboard");
|
||||
params.escapeKey = option_get_int ("input", "escapeKey" );
|
||||
|
@@ -1284,7 +1284,8 @@ static int lg_run()
|
||||
|
||||
// select and init a renderer
|
||||
LG_RendererParams lgrParams;
|
||||
lgrParams.showFPS = params.showFPS;
|
||||
lgrParams.showFPS = params.showFPS;
|
||||
lgrParams.quickSplash = params.quickSplash;
|
||||
Uint32 sdlFlags;
|
||||
|
||||
if (params.forceRenderer)
|
||||
|
@@ -151,6 +151,7 @@ struct AppParams
|
||||
SDL_Scancode escapeKey;
|
||||
bool showAlerts;
|
||||
bool captureOnStart;
|
||||
bool quickSplash;
|
||||
|
||||
unsigned int cursorPollInterval;
|
||||
unsigned int framePollInterval;
|
||||
|
Reference in New Issue
Block a user