summaryrefslogtreecommitdiff
path: root/src/guichan/gui.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-08-26 14:28:58 +0300
committerAndrei Karas <akaras@inbox.ru>2012-08-26 14:28:58 +0300
commit780c9da133b956785cb9c0d9c5e3e67f8209e15c (patch)
tree515fea9f3993a7480ef48c324f65c8f3303f261e /src/guichan/gui.cpp
parent2241f009d34a1c67a87723210e9d7cd6892f8646 (diff)
downloadplus-780c9da133b956785cb9c0d9c5e3e67f8209e15c.tar.gz
plus-780c9da133b956785cb9c0d9c5e3e67f8209e15c.tar.bz2
plus-780c9da133b956785cb9c0d9c5e3e67f8209e15c.tar.xz
plus-780c9da133b956785cb9c0d9c5e3e67f8209e15c.zip
Remove some unused code from guichan.
Diffstat (limited to 'src/guichan/gui.cpp')
-rw-r--r--src/guichan/gui.cpp29
1 files changed, 0 insertions, 29 deletions
diff --git a/src/guichan/gui.cpp b/src/guichan/gui.cpp
index 68cb83190..005b3505b 100644
--- a/src/guichan/gui.cpp
+++ b/src/guichan/gui.cpp
@@ -132,35 +132,6 @@ namespace gcn
void Gui::draw()
{
- if (!mTop)
- throw GCN_EXCEPTION("No top widget set");
- if (!mGraphics)
- throw GCN_EXCEPTION("No graphics set");
-
- if (!mTop->isVisible())
- return;
-
- mGraphics->_beginDraw();
-
- // If top has a frame,
- // draw it before drawing top
- if (mTop->getFrameSize() > 0)
- {
- Rectangle rec = mTop->getDimension();
- rec.x -= mTop->getFrameSize();
- rec.y -= mTop->getFrameSize();
- rec.width += 2 * mTop->getFrameSize();
- rec.height += 2 * mTop->getFrameSize();
- mGraphics->pushClipArea(rec);
- mTop->drawFrame(mGraphics);
- mGraphics->popClipArea();
- }
-
- mGraphics->pushClipArea(mTop->getDimension());
- mTop->draw(mGraphics);
- mGraphics->popClipArea();
-
- mGraphics->_endDraw();
}
void Gui::focusNone()