there can be no saver available (blackness)
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13989 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
b27c5e9861
commit
c10e4a93bd
@ -36,7 +36,8 @@ ScreenSaverThread::ScreenSaverThread(BWindow *wnd, BView *vw, ScreenSaverPrefs *
|
||||
void
|
||||
ScreenSaverThread::Quit()
|
||||
{
|
||||
fSaver->StopSaver();
|
||||
if (fSaver)
|
||||
fSaver->StopSaver();
|
||||
if (fWin)
|
||||
fWin->Hide();
|
||||
}
|
||||
@ -48,7 +49,8 @@ ScreenSaverThread::Thread()
|
||||
fWin->Lock();
|
||||
fView->SetViewColor(0,0,0);
|
||||
fView->SetLowColor(0,0,0);
|
||||
fSaver->StartSaver(fView,false);
|
||||
if (fSaver)
|
||||
fSaver->StartSaver(fView,false);
|
||||
fWin->Unlock();
|
||||
while (1) {
|
||||
snooze(fSaver->TickSize());
|
||||
|
Loading…
Reference in New Issue
Block a user