r=jkobal, a=blizzard
OS/2 only fix - we weren't destroying the splash screen.
Also put in a fix to honor system setting on OS/2 to not display the splash screen.


git-svn-id: svn://10.0.0.236/trunk@80163 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
mkaply%us.ibm.com
2000-09-29 21:20:12 +00:00
parent d98b5aefd5
commit 899cae7f82

View File

@@ -277,7 +277,7 @@ NS_IMETHODIMP
nsSplashScreenOS2::Hide() {
if ( mDlg ) {
// Dismiss the dialog.
WinDismissDlg (mDlg, TRUE);
WinPostMsg(mDlg, WM_CLOSE, 0, 0);
// Release custom bitmap (if there is one).
if ( mBitmap ) {
BOOL ok = GpiDeleteBitmap( mBitmap );
@@ -485,6 +485,11 @@ nsresult
NS_CreateSplashScreen( nsISplashScreen **aResult ) {
if ( aResult ) {
*aResult = 0;
CHAR pBuffer[3];
PrfQueryProfileString( HINI_USERPROFILE, "PM_ControlPanel", "LogoDisplayTime", "1", pBuffer, 3);
if (pBuffer[0] == '0') {
return NS_OK;
} /* endif */
#ifndef XP_OS2
for ( int i = 1; i < __argc; i++ ) {
if ( strcmp( "-quiet", __argv[i] ) == 0