mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-23 11:04:44 +00:00
SCI: Some cosmetic changes to the warning thrown when fixing invalid windows
svn-id: r51306
This commit is contained in:
parent
e131440821
commit
9da4c3f883
@ -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))
|
||||
|
Loading…
x
Reference in New Issue
Block a user