diff options
author | Borja Lorente | 2016-07-29 11:17:23 +0200 |
---|---|---|
committer | Borja Lorente | 2016-07-30 10:06:14 +0200 |
commit | 8a2aeeecc942b6f8991cbdc6577313a6e8f74d9d (patch) | |
tree | 3b990ec40b79452c5ad327c334e66e83415f575b /engines/wage/macmenu.cpp | |
parent | d8652af84e4f909854d753f0ed6aa1dcc4b0a269 (diff) | |
download | scummvm-rg350-8a2aeeecc942b6f8991cbdc6577313a6e8f74d9d.tar.gz scummvm-rg350-8a2aeeecc942b6f8991cbdc6577313a6e8f74d9d.tar.bz2 scummvm-rg350-8a2aeeecc942b6f8991cbdc6577313a6e8f74d9d.zip |
WAGE: Adapt to MacMenu namespace change
Diffstat (limited to 'engines/wage/macmenu.cpp')
-rw-r--r-- | engines/wage/macmenu.cpp | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/engines/wage/macmenu.cpp b/engines/wage/macmenu.cpp index d6dec32269..b776223295 100644 --- a/engines/wage/macmenu.cpp +++ b/engines/wage/macmenu.cpp @@ -55,7 +55,7 @@ #include "wage/macmenu.h" -namespace Wage { +namespace Graphics { enum { kMenuHeight = 20, @@ -89,11 +89,11 @@ struct MenuItem { MenuItem(const char *n) : name(n) {} }; -Menu::Menu(int id, const Common::Rect &bounds, Graphics::MacWindowManager *wm) +Menu::Menu(int id, const Common::Rect &bounds, MacWindowManager *wm) : BaseMacWindow(id, false, wm) { _font = getMenuFont(); - _screen.create(bounds.width(), bounds.height(), Graphics::PixelFormat::createFormatCLUT8()); + _screen.create(bounds.width(), bounds.height(), PixelFormat::createFormatCLUT8()); _bbox.left = 0; _bbox.top = 0; @@ -107,7 +107,7 @@ Menu::Menu(int id, const Common::Rect &bounds, Graphics::MacWindowManager *wm) _ccallback = NULL; _cdata = NULL; - _tempSurface.create(_screen.w, _font->getFontHeight(), Graphics::PixelFormat::createFormatCLUT8()); + _tempSurface.create(_screen.w, _font->getFontHeight(), PixelFormat::createFormatCLUT8()); } Menu::~Menu() { @@ -250,8 +250,8 @@ void Menu::createSubMenuFromString(int id, const char *str) { calcMenuBounds(menu); } -const Graphics::Font *Menu::getMenuFont() { - return _wm->getFont("Chicago-12", Graphics::FontManager::kBigGUIFont); +const Font *Menu::getMenuFont() { + return _wm->getFont("Chicago-12", FontManager::kBigGUIFont); } const char *Menu::getAcceleratorString(MenuSubItem *item, const char *prefix) { @@ -299,17 +299,17 @@ void Menu::calcMenuBounds(MenuItem *menu) { } static void drawPixelPlain(int x, int y, int color, void *data) { - Graphics::ManagedSurface *surface = (Graphics::ManagedSurface *)data; + ManagedSurface *surface = (ManagedSurface *)data; if (x >= 0 && x < surface->w && y >= 0 && y < surface->h) *((byte *)surface->getBasePtr(x, y)) = (byte)color; } -static void drawFilledRoundRect(Graphics::ManagedSurface *surface, Common::Rect &rect, int arc, int color) { - Graphics::drawRoundRect(rect, arc, color, true, drawPixelPlain, surface); +static void drawFilledRoundRect(ManagedSurface *surface, Common::Rect &rect, int arc, int color) { + drawRoundRect(rect, arc, color, true, drawPixelPlain, surface); } -bool Menu::draw(Graphics::ManagedSurface *g, bool forceRedraw) { +bool Menu::draw(ManagedSurface *g, bool forceRedraw) { Common::Rect r(_bbox); if (!_contentIsDirty && !forceRedraw) @@ -385,7 +385,7 @@ void Menu::renderSubmenu(MenuItem *menu) { } if (!text.empty()) { - Graphics::ManagedSurface *s = &_screen; + ManagedSurface *s = &_screen; int tx = x, ty = y; if (!menu->subitems[i]->enabled) { |