From 1ba1c097eeb203ba786f25640ddb367484231cbb Mon Sep 17 00:00:00 2001 From: Tobias Doerffel Date: Wed, 24 Sep 2008 09:22:08 +0000 Subject: [PATCH] do not show splash if environment variable NOSPLASH is set git-svn-id: https://lmms.svn.sf.net/svnroot/lmms/trunk/lmms@1706 0778d3d1-df1d-0410-868b-ea421aaaa00d --- ChangeLog | 6 ++++++ src/core/main.cpp | 6 +++++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 406c87cfa..2194545e8 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,11 @@ 2008-09-24 Tobias Doerffel + * src/core/main.cpp: + do not show splash if environment variable NOSPLASH is set + + * include/audio_portaudio.h: + * src/core/audio/audio_portaudio.cpp: + * src/core/audio/audio_pulseaudio.cpp: * src/core/sample_buffer.cpp: * src/core/sample_record_handle.cpp: * src/tracks/sample_track.cpp: diff --git a/src/core/main.cpp b/src/core/main.cpp index 7c07d8873..a54ba013f 100644 --- a/src/core/main.cpp +++ b/src/core/main.cpp @@ -29,6 +29,7 @@ #include #include +#include #include #include #include @@ -373,7 +374,10 @@ int main( int argc, char * * argv ) ss->setAttribute( Qt::WA_PaintOnScreen, true ); ss->setMask( splash.alphaChannel().createMaskFromColor( QColor( 0, 0, 0 ) ) ); - //ss->show(); + if( !QProcess::systemEnvironment().contains( "NOSPLASH=1" ) ) + { + ss->show(); + } qApp->processEvents(); // init central engine which handles all components of LMMS