aboutsummaryrefslogtreecommitdiff
path: root/engines/sci
diff options
context:
space:
mode:
authorMartin Kiewitz2010-07-22 19:30:20 +0000
committerMartin Kiewitz2010-07-22 19:30:20 +0000
commit0848e3dd93034406852cf50423d595d0d50781e7 (patch)
tree3011de2b21d2e960f432eb36fcedadf87cb7bbad /engines/sci
parent49c41ab166b66f650f91c5710e5329b300fc433d (diff)
downloadscummvm-rg350-0848e3dd93034406852cf50423d595d0d50781e7.tar.gz
scummvm-rg350-0848e3dd93034406852cf50423d595d0d50781e7.tar.bz2
scummvm-rg350-0848e3dd93034406852cf50423d595d0d50781e7.zip
SCI: doing res correction on text as well
"fixes" lsl6 abort intro dialog svn-id: r51159
Diffstat (limited to 'engines/sci')
-rw-r--r--engines/sci/graphics/frameout.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/engines/sci/graphics/frameout.cpp b/engines/sci/graphics/frameout.cpp
index db95fadef8..04ed0ec739 100644
--- a/engines/sci/graphics/frameout.cpp
+++ b/engines/sci/graphics/frameout.cpp
@@ -342,6 +342,10 @@ void GfxFrameout::kernelFrameout() {
GfxFont *font = _cache->getFont(readSelectorValue(_segMan, itemEntry->object, SELECTOR(font)));
bool dimmed = readSelectorValue(_segMan, itemEntry->object, SELECTOR(dimmed));
uint16 foreColor = readSelectorValue(_segMan, itemEntry->object, SELECTOR(fore));
+
+ itemEntry->y = ((itemEntry->y * _screen->getHeight()) / planeResY);
+ itemEntry->x = ((itemEntry->x * _screen->getWidth()) / planeResX);
+
uint16 curX = itemEntry->x + planeRect.left;
uint16 curY = itemEntry->y + planeRect.top;
for (uint32 i = 0; i < text.size(); i++) {