mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-22 18:37:01 +00:00
SCI32: Add const to getCurrentBuffer
This commit is contained in:
parent
07b72c9fec
commit
77991b7eac
@ -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));
|
||||
|
@ -423,7 +423,7 @@ public:
|
||||
*/
|
||||
bool _palMorphIsOn;
|
||||
|
||||
inline Buffer &getCurrentBuffer() {
|
||||
inline const Buffer &getCurrentBuffer() const {
|
||||
return _currentBuffer;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user