From 64861f1e40ee5084bcbfa3e5bd3adbe746d7dfc5 Mon Sep 17 00:00:00 2001 From: Martin Kiewitz Date: Sun, 18 Oct 2009 19:29:50 +0000 Subject: SCI/newgui: kDisplay fixme comment added for kq5 credits svn-id: r45232 --- engines/sci/gui/gui.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'engines') 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) -- cgit v1.2.3