From 0668a56f69797d26ab074d6949ed6c7870791e53 Mon Sep 17 00:00:00 2001 From: Strangerke Date: Fri, 16 Sep 2011 23:54:08 +0200 Subject: CGE: Move _vga to CGEEngine --- engines/cge/vmenu.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'engines/cge/vmenu.cpp') diff --git a/engines/cge/vmenu.cpp b/engines/cge/vmenu.cpp index c213b997a3..25510a62a2 100644 --- a/engines/cge/vmenu.cpp +++ b/engines/cge/vmenu.cpp @@ -49,7 +49,7 @@ MenuBar::MenuBar(CGEEngine *vm, uint16 w) : Talk(vm), _vm(vm) { } _ts = new BitmapPtr[2]; - _ts[0] = new Bitmap(w, h, p); + _ts[0] = new Bitmap(_vm, w, h, p); _ts[1] = NULL; setShapeList(_ts); @@ -77,10 +77,10 @@ Vmenu::Vmenu(CGEEngine *vm, Choice *list, int x, int y) center(); else gotoxy(x - _w / 2, y - (kTextVMargin + kFontHigh / 2)); - _vga->_showQ->insert(this, _vga->_showQ->last()); + _vm->_vga->_showQ->insert(this, _vm->_vga->_showQ->last()); _bar = new MenuBar(_vm, _w - 2 * kTextHMargin); _bar->gotoxy(_x + kTextHMargin - kMenuBarHM, _y + kTextVMargin - kMenuBarVM); - _vga->_showQ->insert(_bar, _vga->_showQ->last()); + _vm->_vga->_showQ->insert(_bar, _vm->_vga->_showQ->last()); } Vmenu::~Vmenu() { -- cgit v1.2.3