diff options
Diffstat (limited to 'engines/saga/events.cpp')
-rw-r--r-- | engines/saga/events.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/engines/saga/events.cpp b/engines/saga/events.cpp index 78da66d993..7144a1cbd1 100644 --- a/engines/saga/events.cpp +++ b/engines/saga/events.cpp @@ -180,8 +180,8 @@ int Events::handleContinuous(Event *event) { size_t len; _vm->_scene->getBGMaskInfo(w, h, maskBuffer, len); - rect.left = (_vm->getDisplayWidth() - w) / 2; - rect.top = (_vm->getDisplayHeight() - h) / 2; + rect.left = (_vm->getDisplayInfo().logicalWidth - w) / 2; + rect.top = (_vm->getDisplayInfo().logicalHeight - h) / 2; rect.setWidth(w); rect.setHeight(h); @@ -319,7 +319,7 @@ int Events::handleOneShot(Event *event) { backGroundSurface->blit(bgInfo.bounds, bgInfo.buffer); // If it is inset scene then draw black border - if (bgInfo.bounds.width() < _vm->getDisplayWidth() || bgInfo.bounds.height() < _vm->_scene->getHeight()) { + if (bgInfo.bounds.width() < _vm->getDisplayInfo().logicalWidth || bgInfo.bounds.height() < _vm->_scene->getHeight()) { Common::Rect rect1(2, bgInfo.bounds.height() + 4); Common::Rect rect2(bgInfo.bounds.width() + 4, 2); Common::Rect rect3(2, bgInfo.bounds.height() + 4); |