aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/engine
diff options
context:
space:
mode:
authorMartin Kiewitz2009-10-18 15:38:49 +0000
committerMartin Kiewitz2009-10-18 15:38:49 +0000
commit2ab93510d37d8420f546e18e80ad0125a87691f0 (patch)
tree1008048d55cd5ff2f8e3e48fc55c830e81d03677 /engines/sci/engine
parentb7b32cfe26144d26d65dfb00854bd363c38b3a7d (diff)
downloadscummvm-rg350-2ab93510d37d8420f546e18e80ad0125a87691f0.tar.gz
scummvm-rg350-2ab93510d37d8420f546e18e80ad0125a87691f0.tar.bz2
scummvm-rg350-2ab93510d37d8420f546e18e80ad0125a87691f0.zip
SCI: cleanup text alignment
svn-id: r45224
Diffstat (limited to 'engines/sci/engine')
-rw-r--r--engines/sci/engine/kgraphics.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/engines/sci/engine/kgraphics.cpp b/engines/sci/engine/kgraphics.cpp
index c7e44028f5..7c3763740d 100644
--- a/engines/sci/engine/kgraphics.cpp
+++ b/engines/sci/engine/kgraphics.cpp
@@ -670,6 +670,7 @@ void _k_GenericDrawControl(EngineState *s, reg_t controlObject, bool hilite) {
reg_t textReference = GET_SEL32(controlObject, text);
Common::String text;
Common::Rect rect;
+ GuiTextAlignment alignment;
int16 mode, maxChars, cursorPos, upperPos, listCount, i;
int16 upperOffset, cursorOffset;
GuiResourceId viewId;
@@ -692,9 +693,9 @@ void _k_GenericDrawControl(EngineState *s, reg_t controlObject, bool hilite) {
return;
case SCI_CONTROLS_TYPE_TEXT:
- mode = GET_SEL32V(controlObject, mode);
- debugC(2, kDebugLevelGraphics, "drawing text %04x:%04x ('%s') to %d,%d, mode=%d\n", PRINT_REG(controlObject), text.c_str(), x, y, mode);
- s->_gui->drawControlText(rect, controlObject, s->strSplit(text.c_str(), NULL).c_str(), fontId, mode, style, hilite);
+ alignment = GET_SEL32V(controlObject, mode);
+ debugC(2, kDebugLevelGraphics, "drawing text %04x:%04x ('%s') to %d,%d, mode=%d\n", PRINT_REG(controlObject), text.c_str(), x, y, alignment);
+ s->_gui->drawControlText(rect, controlObject, s->strSplit(text.c_str(), NULL).c_str(), fontId, alignment, style, hilite);
return;
case SCI_CONTROLS_TYPE_TEXTEDIT: