diff options
author | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2009-11-23 16:58:55 +0300 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2009-11-23 16:58:55 +0300 |
commit | 7b036e1dcb42f34020bff3d15071526b5d2cd479 (patch) | |
tree | 6608aee0a6397fc7735c2d183b3a8d1f8612182b /source/creator | |
parent | fc1c411e2c43b7dc1641b7152076b85770e96f78 (diff) |
Splash screen, implemented by Matt.
* Now has documentation links and recent files.
* Click on image or outside splash to make it go away.
* Still has old image, new one will be committed later.
Diffstat (limited to 'source/creator')
-rw-r--r-- | source/creator/creator.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/source/creator/creator.c b/source/creator/creator.c index 10674d830ba..3a9ee9859e8 100644 --- a/source/creator/creator.c +++ b/source/creator/creator.c @@ -278,7 +278,7 @@ int main(int argc, char **argv) { SYS_SystemHandle syshandle; bContext *C= CTX_create(); - int a, i, stax, stay, sizx, sizy /*XXX, scr_init = 0*/; + int a, i, stax, stay, sizx, sizy /*XXX, scr_init = 0*/, file_loaded= 0; #ifdef WITH_BINRELOC br_init( NULL ); @@ -880,6 +880,8 @@ int main(int argc, char **argv) a file - this should do everything a 'load file' does */ WM_read_file(C, filename, NULL); } + + file_loaded = 1; } } @@ -888,9 +890,12 @@ int main(int argc, char **argv) WM_exit(C); } + if(!G.background && !file_loaded) + WM_init_splash(C); WM_main(C); - + + /*XXX if (scr_init==0) { main_init_screen(); } |