added screen_blanker's rdef

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13968 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Jérôme Duval 2005-08-17 18:16:07 +00:00
parent a4f1e9491d
commit 3b0024c780
3 changed files with 11 additions and 3 deletions

View File

@ -8,6 +8,7 @@ BinCommand screen_blanker :
PasswordWindow.cpp
ScreenSaver.cpp
: be game libscreensaver.so
: screen_blanker.rdef
;
SEARCH on [ FGristFiles

View File

@ -39,17 +39,20 @@ ScreenSaverApp::ScreenSaverApp()
void
ScreenSaverApp::ReadyToRun()
{
if (!fPref.LoadSettings())
if (!fPref.LoadSettings()) {
fprintf(stderr, "could not load settings\n");
exit(1);
else { // If everything works OK, create a BDirectWindow and start the render thread.
} else { // If everything works OK, create a BDirectWindow and start the render thread.
BScreen theScreen(B_MAIN_SCREEN_ID);
fWin = new SSAwindow(theScreen.Frame());
fPww = new PasswordWindow();
fThrd = new ScreenSaverThread(fWin ,fWin->fView, &fPref);
fSaver = fThrd->LoadAddOn();
if (!fSaver)
if (!fSaver) {
fprintf(stderr, "could not load the screensaver addon\n");
exit(1);
}
fWin->SetSaver(fSaver);
fWin->SetFullScreen(true);
fWin->Show();

View File

@ -0,0 +1,4 @@
resource app_signature "application/x-vnd.Haiku.screenblanker";
resource app_flags B_MULTIPLE_LAUNCH | B_BACKGROUND_APP;