summaryrefslogtreecommitdiff
path: root/src/gui/popupmenu.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/popupmenu.cpp')
-rw-r--r--src/gui/popupmenu.cpp20
1 files changed, 1 insertions, 19 deletions
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