aboutsummaryrefslogtreecommitdiff
path: root/engines/bbvs/dialogs.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/bbvs/dialogs.cpp')
-rw-r--r--engines/bbvs/dialogs.cpp15
1 files changed, 9 insertions, 6 deletions
diff --git a/engines/bbvs/dialogs.cpp b/engines/bbvs/dialogs.cpp
index c8470f8eef..a0aa23733b 100644
--- a/engines/bbvs/dialogs.cpp
+++ b/engines/bbvs/dialogs.cpp
@@ -8,12 +8,12 @@
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
-
+ *
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
-
+ *
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
@@ -22,10 +22,13 @@
#include "bbvs/dialogs.h"
#include "common/events.h"
-#include "gui/gui-manager.h"
-#include "gui/ThemeEval.h"
+#include "gui/widget.h"
#include "engines/advancedDetector.h"
+namespace GUI {
+class CommandSender;
+}
+
namespace Bbvs {
struct MenuButton {
@@ -92,8 +95,8 @@ void MainMenu::init() {
}
void MainMenu::reflowLayout() {
- const int screenW = g_system->getOverlayWidth();
- const int screenH = g_system->getOverlayHeight();
+ const int screenW = _vm->_system->getOverlayWidth();
+ const int screenH = _vm->_system->getOverlayHeight();
const int buttonWidth = screenW * 70 / 320;
const int buttonHeight = screenH * 14 / 240;