aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Kiewitz2009-10-18 19:29:50 +0000
committerMartin Kiewitz2009-10-18 19:29:50 +0000
commit64861f1e40ee5084bcbfa3e5bd3adbe746d7dfc5 (patch)
tree71f22964fc89661c7db0b536a8f8a32616ef1164
parent32810a30b575d7c11bd0f409d0c09549e53e5437 (diff)
downloadscummvm-rg350-64861f1e40ee5084bcbfa3e5bd3adbe746d7dfc5.tar.gz
scummvm-rg350-64861f1e40ee5084bcbfa3e5bd3adbe746d7dfc5.tar.bz2
scummvm-rg350-64861f1e40ee5084bcbfa3e5bd3adbe746d7dfc5.zip
SCI/newgui: kDisplay fixme comment added for kq5 credits
svn-id: r45232
-rw-r--r--engines/sci/gui/gui.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/engines/sci/gui/gui.cpp b/engines/sci/gui/gui.cpp
index 958cf279af..5933a81b2e 100644
--- a/engines/sci/gui/gui.cpp
+++ b/engines/sci/gui/gui.cpp
@@ -239,6 +239,11 @@ void SciGui::display(const char *text, int argc, reg_t *argv) {
}
}
+ // FIXME: this code seems to be broken somewhat. KQ5 sets coordinates to 90, 80 and sets width to 320
+ // our code can not handle this currently, so the text wont get centered as it should
+ // clipping coordinates to 0, 0 isnt working either, because kq5 writes to coordinates 90, 80 AND 89, 80
+ // to create a shadow of the font. Investigation into disassembly needed
+
// now drawing the text
_gfx->TextSize(rect, text, -1, width);
_gfx->Move((orect->left <= _screen->_width ? 0 : _screen->_width - orect->left), (orect->top <= _screen->_height ? 0 : _screen->_height - orect->top)); // move port to (0,0)