Force blackness view only when no saver was found. This fix pseudo-saver Blackness

that was broken by previous change.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39790 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Philippe Houdoin 2010-12-09 15:50:25 +00:00
parent 7f45fe0b3e
commit 5efc1f3d21

View File

@ -74,6 +74,7 @@ ScreenBlanker::ReadyToRun()
fRunner->Run();
} else {
fprintf(stderr, "could not load the screensaver addon\n");
fWindow->ChildAt(0)->SetViewColor(0, 0, 0);
}
fWindow->SetFullScreen(true);
@ -284,7 +285,7 @@ ScreenBlanker::_Shutdown()
if (fWindow->Lock())
fWindow->Quit();
}
delete fRunner;
}