diff options
author | Filippos Karapetis | 2011-10-29 18:29:32 +0300 |
---|---|---|
committer | Filippos Karapetis | 2011-10-29 18:32:52 +0300 |
commit | d87b4d88e0a6e0e815b6721bdf5ac16ff590aa8e (patch) | |
tree | f6535fd24cdabd2850f52eeca444d39c8a8729e1 /engines/sci/graphics | |
parent | c4b2cd057a78b56a6ad554b796e4574567b0ca18 (diff) | |
download | scummvm-rg350-d87b4d88e0a6e0e815b6721bdf5ac16ff590aa8e.tar.gz scummvm-rg350-d87b4d88e0a6e0e815b6721bdf5ac16ff590aa8e.tar.bz2 scummvm-rg350-d87b4d88e0a6e0e815b6721bdf5ac16ff590aa8e.zip |
SCI: Bugfix for text alignment in SCI32 games
Diffstat (limited to 'engines/sci/graphics')
-rw-r--r-- | engines/sci/graphics/text32.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/sci/graphics/text32.cpp b/engines/sci/graphics/text32.cpp index 214b60d003..37e421d09d 100644 --- a/engines/sci/graphics/text32.cpp +++ b/engines/sci/graphics/text32.cpp @@ -70,7 +70,7 @@ reg_t GfxText32::createTextBitmap(reg_t textObject, uint16 maxWidth, uint16 maxH GuiResourceId fontId = readSelectorValue(_segMan, textObject, SELECTOR(font)); GfxFont *font = _cache->getFont(fontId); bool dimmed = readSelectorValue(_segMan, textObject, SELECTOR(dimmed)); - uint16 alignment = readSelectorValue(_segMan, textObject, SELECTOR(mode)); + int16 alignment = readSelectorValue(_segMan, textObject, SELECTOR(mode)); uint16 foreColor = readSelectorValue(_segMan, textObject, SELECTOR(fore)); uint16 backColor = readSelectorValue(_segMan, textObject, SELECTOR(back)); @@ -130,7 +130,7 @@ reg_t GfxText32::createTextBitmap(reg_t textObject, uint16 maxWidth, uint16 maxH break; Width(txt, start, charCount, fontId, textWidth, textHeight, true); - switch ((int)alignment) { + switch (alignment) { case SCI_TEXT32_ALIGNMENT_RIGHT: offsetX = width - textWidth; break; |