diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-05-13 22:23:22 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-05-13 22:23:22 +0300 |
commit | 362f35430a2edd76885f6cd8f3e4565260d2101a (patch) | |
tree | 22d8092d1611f252abdeaf09fc342628f1d87da1 /src/gui/widgets/browserbox.cpp | |
parent | aa03bdb26c736e7d506d656a5529cf6a4e9fe6b4 (diff) | |
download | manaverse-362f35430a2edd76885f6cd8f3e4565260d2101a.tar.gz manaverse-362f35430a2edd76885f6cd8f3e4565260d2101a.tar.bz2 manaverse-362f35430a2edd76885f6cd8f3e4565260d2101a.tar.xz manaverse-362f35430a2edd76885f6cd8f3e4565260d2101a.zip |
Remove duplicate function from graphics.
Diffstat (limited to 'src/gui/widgets/browserbox.cpp')
-rw-r--r-- | src/gui/widgets/browserbox.cpp | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/gui/widgets/browserbox.cpp b/src/gui/widgets/browserbox.cpp index 4862e07a3..fdb528cea 100644 --- a/src/gui/widgets/browserbox.cpp +++ b/src/gui/widgets/browserbox.cpp @@ -473,11 +473,9 @@ void BrowserBox::mouseExited(MouseEvent &event A_UNUSED) void BrowserBox::draw(Graphics *graphics) { BLOCK_START("BrowserBox::draw") - const ClipRect *const cr = graphics->getCurrentClipArea(); - if (!cr) - return; - mYStart = cr->y - cr->yOffset; - const int yEnd = mYStart + cr->height; + const ClipRect &cr = graphics->getTopClip(); + mYStart = cr.y - cr.yOffset; + const int yEnd = mYStart + cr.height; if (mYStart < 0) mYStart = 0; |