SCI32: Add const to getCurrentBuffer

This commit is contained in:
Colin Snover 2016-07-01 19:46:39 -05:00
parent 07b72c9fec
commit 77991b7eac
2 changed files with 2 additions and 2 deletions

View File

@ -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));

View File

@ -423,7 +423,7 @@ public:
*/
bool _palMorphIsOn;
inline Buffer &getCurrentBuffer() {
inline const Buffer &getCurrentBuffer() const {
return _currentBuffer;
}