From 4ecc89dcc6516b10c6dab8b79dcaa435ec9e1435 Mon Sep 17 00:00:00 2001 From: Bjørn Lindeijer Date: Wed, 13 Jul 2005 22:44:23 +0000 Subject: * Committing some cleanups by Doener * Fixed some compiler warnings * Restored a USE_OPENGL check around OpenGL headers * Fixed error about FALSE not being defined * Fixed issue with font to become speechFont when the latter is not installed --- src/gui/popupmenu.cpp | 20 +------------------- 1 file changed, 1 insertion(+), 19 deletions(-) (limited to 'src/gui/popupmenu.cpp') diff --git a/src/gui/popupmenu.cpp b/src/gui/popupmenu.cpp index 36c246a6..5e8294a1 100644 --- a/src/gui/popupmenu.cpp +++ b/src/gui/popupmenu.cpp @@ -34,6 +34,7 @@ PopupMenu::PopupMenu(): { setResizable(false); setTitleBarHeight(0); + title = false; browserBox = new BrowserBox(); browserBox->setPosition(4, 4); @@ -120,25 +121,6 @@ void PopupMenu::showPopup(int mx, int my) setVisible(true); } -void PopupMenu::draw(gcn::Graphics* graphics) -{ - int x, y; - getAbsolutePosition(x, y); - - ((Graphics*) graphics)->drawImageRect(x, y, getWidth(), getHeight(), - border); - - if (mContent != NULL) - { - graphics->pushClipArea(getContentDimension()); - graphics->pushClipArea(gcn::Rectangle( - 0, 0, mContent->getWidth(), mContent->getHeight())); - mContent->draw(graphics); - graphics->popClipArea(); - graphics->popClipArea(); - } -} - void PopupMenu::handleLink(const std::string& link) { // Talk To action -- cgit v1.2.3-70-g09d2