SCI: Some cosmetic changes to the warning thrown when fixing invalid windows

svn-id: r51306
This commit is contained in:
Filippos Karapetis 2010-07-26 09:18:04 +00:00
parent e131440821
commit 9da4c3f883

View File

@ -250,9 +250,10 @@ Window *GfxPorts::newWindow(const Common::Rect &dims, const Common::Rect *restor
r = dims;
if (r.width() > _screen->getWidth()) {
// We get invalid dimensions at least at the end of sq3 (script bug!)
// same happens very often in lsl5, sierra sci didnt fix it but it looked awful
warning("fixing too large window, given left&right was %d, %d", dims.left, dims.right);
// We get invalid dimensions at least at the end of sq3 (script bug!).
// Same happens very often in lsl5, sierra sci didnt fix it but it looked awful.
// Also happens frequently in the demo of GK1.
warning("Fixing too large window, left: %d, right: %d", dims.left, dims.right);
r.left = 0;
r.right = _screen->getWidth() - 1;
if ((style != _styleUser) && !(style & SCI_WINDOWMGR_STYLE_NOFRAME))