aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Kiewitz2010-01-02 22:04:05 +0000
committerMartin Kiewitz2010-01-02 22:04:05 +0000
commitbaf8575e36badf6d8379087e4fc7b2a2cc7b42ad (patch)
tree24fc34718c426cfc333b428198c76baa97c00f78
parent2f65f8f7c62c0bb5d4e8e8043c877d03163aa1be (diff)
downloadscummvm-rg350-baf8575e36badf6d8379087e4fc7b2a2cc7b42ad.tar.gz
scummvm-rg350-baf8575e36badf6d8379087e4fc7b2a2cc7b42ad.tar.bz2
scummvm-rg350-baf8575e36badf6d8379087e4fc7b2a2cc7b42ad.zip
SCI: adjusted kDisplay change to occur SCI1late
svn-id: r46902
-rw-r--r--engines/sci/gui/gui.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/engines/sci/gui/gui.cpp b/engines/sci/gui/gui.cpp
index 562d5d95d1..4451dfa940 100644
--- a/engines/sci/gui/gui.cpp
+++ b/engines/sci/gui/gui.cpp
@@ -264,10 +264,7 @@ void SciGui::display(const char *text, int argc, reg_t *argv) {
// now drawing the text
_text->Size(rect, text, -1, width);
rect.moveTo(_gfx->GetPort()->curLeft, _gfx->GetPort()->curTop);
- if (getSciVersion() >= SCI_VERSION_1_EGA) {
- // TODO: Not absolutely sure when this changed happened
- // Clipping is definitely not done in qfg1, but are done in kq5cd
- // This fixes colonels bequest
+ if (getSciVersion() >= SCI_VERSION_1_LATE) {
_gfx->Move(rect.right <= _screen->_width ? 0 : _screen->_width - rect.right, rect.bottom <= _screen->_height ? 0 : _screen->_width - rect.bottom);
rect.moveTo(_gfx->GetPort()->curLeft, _gfx->GetPort()->curTop);
}