aboutsummaryrefslogtreecommitdiff
path: root/gui/widgets/editable.cpp
diff options
context:
space:
mode:
authorAlexander Tkachev2016-07-01 14:25:05 +0600
committerEugene Sandulenko2016-07-03 12:24:46 +0200
commit3d636617d0781bdd477551a87f6b9fc60e0a4a1f (patch)
treef3a5ff0951093c5c7c329e08683f64f58f340148 /gui/widgets/editable.cpp
parentdc9b32e62086151c0bac011e6bc4a5d94d8907a3 (diff)
downloadscummvm-rg350-3d636617d0781bdd477551a87f6b9fc60e0a4a1f.tar.gz
scummvm-rg350-3d636617d0781bdd477551a87f6b9fc60e0a4a1f.tar.bz2
scummvm-rg350-3d636617d0781bdd477551a87f6b9fc60e0a4a1f.zip
GUI: Use clipping everywhere
Diffstat (limited to 'gui/widgets/editable.cpp')
-rw-r--r--gui/widgets/editable.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/gui/widgets/editable.cpp b/gui/widgets/editable.cpp
index 83b6a7b84e..4f7e584c14 100644
--- a/gui/widgets/editable.cpp
+++ b/gui/widgets/editable.cpp
@@ -303,7 +303,7 @@ void EditableWidget::drawCaret(bool erase) {
// possible glitches due to different methods used.
width = MIN(editRect.width() - caretOffset, width);
if (width > 0) {
- g_gui.theme()->drawText(Common::Rect(x, y, x + width, y + editRect.height()), character, _state, Graphics::kTextAlignLeft, _inversion, 0, false, _font, ThemeEngine::kFontColorNormal, true, _textDrawableArea);
+ g_gui.theme()->drawTextClip(Common::Rect(x, y, x + width, y + editRect.height()), getBossClipRect(), character, _state, Graphics::kTextAlignLeft, _inversion, 0, false, _font, ThemeEngine::kFontColorNormal, true, _textDrawableArea);
}
}