From 77991b7eac85051978bf1c09dd4d0710ac3929ef Mon Sep 17 00:00:00 2001 From: Colin Snover Date: Fri, 1 Jul 2016 19:46:39 -0500 Subject: SCI32: Add const to getCurrentBuffer --- engines/sci/event.cpp | 2 +- engines/sci/graphics/frameout.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'engines') 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; } -- cgit v1.2.3