diff options
author | Colin Snover | 2016-07-01 19:46:39 -0500 |
---|---|---|
committer | Colin Snover | 2016-07-02 22:28:41 -0500 |
commit | 77991b7eac85051978bf1c09dd4d0710ac3929ef (patch) | |
tree | fb48c8fa26e99d08cdd40a52160be37cb86d5890 /engines | |
parent | 07b72c9fec70312786b0ed1784b946bf21859e80 (diff) | |
download | scummvm-rg350-77991b7eac85051978bf1c09dd4d0710ac3929ef.tar.gz scummvm-rg350-77991b7eac85051978bf1c09dd4d0710ac3929ef.tar.bz2 scummvm-rg350-77991b7eac85051978bf1c09dd4d0710ac3929ef.zip |
SCI32: Add const to getCurrentBuffer
Diffstat (limited to 'engines')
-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; } |