Fixes window icons with SDL, hooking it through the var $Core::windowIcon as the path.

Also adjusted the splash window icon to use the var $Core::splashWindowImage for it's path.
This commit is contained in:
Areloch 2016-12-22 00:52:34 -06:00
parent d3dd5ce235
commit 170cdadf60
4 changed files with 56 additions and 1 deletions

View file

@ -2141,13 +2141,18 @@ DefineEngineFunction( gotoWebPage, void, ( const char* address ),,
//-----------------------------------------------------------------------------
DefineEngineFunction( displaySplashWindow, bool, (const char* path), ("art/gui/splash.bmp"),
DefineEngineFunction( displaySplashWindow, bool, (const char* path), (""),
"Display a startup splash window suitable for showing while the engine still starts up.\n\n"
"@note This is currently only implemented on Windows.\n\n"
"@param path relative path to splash screen image to display.\n"
"@return True if the splash window could be successfully initialized.\n\n"
"@ingroup Platform" )
{
if (path == "")
{
path = Con::getVariable("$Core::splashWindowImage");
}
return Platform::displaySplashWindow(path);
}