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:
parent
a4f1e9491d
commit
3b0024c780
@ -8,6 +8,7 @@ BinCommand screen_blanker :
|
||||
PasswordWindow.cpp
|
||||
ScreenSaver.cpp
|
||||
: be game libscreensaver.so
|
||||
: screen_blanker.rdef
|
||||
;
|
||||
|
||||
SEARCH on [ FGristFiles
|
||||
|
@ -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();
|
||||
|
4
src/bin/screen_blanker/screen_blanker.rdef
Normal file
4
src/bin/screen_blanker/screen_blanker.rdef
Normal file
@ -0,0 +1,4 @@
|
||||
|
||||
resource app_signature "application/x-vnd.Haiku.screenblanker";
|
||||
|
||||
resource app_flags B_MULTIPLE_LAUNCH | B_BACKGROUND_APP;
|
Loading…
Reference in New Issue
Block a user