diff --git a/src/servers/app/Screen.cpp b/src/servers/app/Screen.cpp
index 7672c03849..c37096bbbb 100644
a
|
b
|
Screen::~Screen()
|
67 | 67 | status_t |
68 | 68 | Screen::Initialize() |
69 | 69 | { |
70 | | status_t status = B_NO_INIT; |
71 | | |
72 | 70 | if (fHWInterface.IsSet()) { |
73 | 71 | // init the graphics hardware |
74 | | status = fHWInterface->Initialize(); |
| 72 | return fHWInterface->Initialize(); |
75 | 73 | } |
76 | 74 | |
77 | | // Turn on screen if this is not yet done by BIOS |
78 | | if (status == B_OK) |
79 | | fHWInterface->SetDPMSMode(B_DPMS_ON); |
80 | | |
81 | | |
82 | | return status; |
| 75 | return B_NO_INIT; |
83 | 76 | } |
84 | 77 | |
85 | 78 | |
diff --git a/src/servers/app/VirtualScreen.cpp b/src/servers/app/VirtualScreen.cpp
index 94a9e1e1f2..14cf7f8d6b 100644
a
|
b
|
VirtualScreen::AddScreen(Screen* screen, ScreenConfigurations& configurations)
|
125 | 125 | status = screen->SetMode(mode); |
126 | 126 | } |
127 | 127 | if (status != B_OK) { |
128 | | status_t status = screen->SetPreferredMode(); |
| 128 | status = screen->SetPreferredMode(); |
129 | 129 | if (status != B_OK) |
130 | 130 | status = screen->SetBestMode(1024, 768, B_RGB32, 60.f); |
131 | 131 | if (status != B_OK) |
… |
… |
VirtualScreen::AddScreen(Screen* screen, ScreenConfigurations& configurations)
|
136 | 136 | } |
137 | 137 | } |
138 | 138 | |
| 139 | // Turn on screen if this is not yet done by BIOS |
| 140 | if (status == B_OK) |
| 141 | screen->HWInterface()->SetDPMSMode(B_DPMS_ON); |
| 142 | |
139 | 143 | // TODO: this works only for single screen configurations |
140 | 144 | fDrawingEngine = screen->GetDrawingEngine(); |
141 | 145 | fHWInterface = screen->HWInterface(); |