aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/graphics/coordadjuster.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/sci/graphics/coordadjuster.cpp')
-rw-r--r--engines/sci/graphics/coordadjuster.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/engines/sci/graphics/coordadjuster.cpp b/engines/sci/graphics/coordadjuster.cpp
index 48f6d0161c..4e914fa9cc 100644
--- a/engines/sci/graphics/coordadjuster.cpp
+++ b/engines/sci/graphics/coordadjuster.cpp
@@ -78,6 +78,12 @@ void GfxCoordAdjuster16::moveCursor(Common::Point &pos) {
pos.x = CLIP<int16>(pos.x, _ports->_picWind->rect.left, _ports->_picWind->rect.right - 1);
}
+Common::Rect GfxCoordAdjuster16::pictureGetDisplayArea() {
+ Common::Rect displayArea(_ports->getPort()->rect.right, _ports->getPort()->rect.bottom);
+ displayArea.moveTo(_ports->getPort()->left, _ports->getPort()->top);
+ return displayArea;
+};
+
#ifdef ENABLE_SCI32
GfxCoordAdjuster32::GfxCoordAdjuster32(SegManager *segMan)
: _segMan(segMan) {
@@ -108,6 +114,14 @@ Common::Rect GfxCoordAdjuster32::onControl(Common::Rect rect) {
adjustedRect.translate(0, 10);
return adjustedRect;
}
+
+void GfxCoordAdjuster32::pictureSetDisplayArea(Common::Rect displayArea) {
+ _pictureDisplayArea = displayArea;
+}
+
+Common::Rect GfxCoordAdjuster32::pictureGetDisplayArea() {
+ return _pictureDisplayArea;
+};
#endif
} // End of namespace Sci