diff options
author | Strangerke | 2011-09-16 23:54:08 +0200 |
---|---|---|
committer | Strangerke | 2011-09-16 23:54:08 +0200 |
commit | 0668a56f69797d26ab074d6949ed6c7870791e53 (patch) | |
tree | e9569eeb0857360e5fcca9810ece5849c2d93bbf /engines/cge/vmenu.cpp | |
parent | 938c08ae589eaa9b0cafc02478997f34bf7d598d (diff) | |
download | scummvm-rg350-0668a56f69797d26ab074d6949ed6c7870791e53.tar.gz scummvm-rg350-0668a56f69797d26ab074d6949ed6c7870791e53.tar.bz2 scummvm-rg350-0668a56f69797d26ab074d6949ed6c7870791e53.zip |
CGE: Move _vga to CGEEngine
Diffstat (limited to 'engines/cge/vmenu.cpp')
-rw-r--r-- | engines/cge/vmenu.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
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() { |