diff options
-rw-r--r-- | engines/sci/event.cpp | 2 | ||||
-rw-r--r-- | engines/sci/graphics/frameout.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/engines/sci/event.cpp b/engines/sci/event.cpp index 34f1618514..4ad2a0cfa3 100644 --- a/engines/sci/event.cpp +++ b/engines/sci/event.cpp @@ -166,7 +166,7 @@ SciEvent EventManager::getScummVMEvent() { #if ENABLE_SCI32 if (getSciVersion() >= SCI_VERSION_2) { - Buffer &screen = g_sci->_gfxFrameout->getCurrentBuffer(); + const Buffer &screen = g_sci->_gfxFrameout->getCurrentBuffer(); Common::Point mousePosSci = mousePos; mulru(mousePosSci, Ratio(screen.scriptWidth, screen.screenWidth), Ratio(screen.scriptHeight, screen.screenHeight)); diff --git a/engines/sci/graphics/frameout.h b/engines/sci/graphics/frameout.h index e736872773..4a44410334 100644 --- a/engines/sci/graphics/frameout.h +++ b/engines/sci/graphics/frameout.h @@ -423,7 +423,7 @@ public: */ bool _palMorphIsOn; - inline Buffer &getCurrentBuffer() { + inline const Buffer &getCurrentBuffer() const { return _currentBuffer; } |