diff options
author | Johannes Schickel | 2012-06-13 04:13:16 +0200 |
---|---|---|
committer | Johannes Schickel | 2012-06-13 04:13:16 +0200 |
commit | 34c57519489186ae62a28072199b247211c05161 (patch) | |
tree | 82c2604d400e60a462a765099342cfe0d30e275c /engines/kyra/text_mr.cpp | |
parent | 2a1193a6b1d19664b876fb98568fa677463781a6 (diff) | |
download | scummvm-rg350-34c57519489186ae62a28072199b247211c05161.tar.gz scummvm-rg350-34c57519489186ae62a28072199b247211c05161.tar.bz2 scummvm-rg350-34c57519489186ae62a28072199b247211c05161.zip |
KYRA: Reduce amount of updateScreen calls.
This fixes some slowdowns in Kyra2 with the OpenGL backend for me. Most of the
updateScreen calls saved were introduced by us implementing the original
behavior of hiding the mouse before drawing onto the screen and showing it
again afterwards, since the mouse cursor is not drawn on the game screen in our
implementation (and unlike in the original) this is not necessary.
Diffstat (limited to 'engines/kyra/text_mr.cpp')
-rw-r--r-- | engines/kyra/text_mr.cpp | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/engines/kyra/text_mr.cpp b/engines/kyra/text_mr.cpp index b680e9c6f9..10b0880f29 100644 --- a/engines/kyra/text_mr.cpp +++ b/engines/kyra/text_mr.cpp @@ -145,9 +145,7 @@ void TextDisplayer_MR::printText(const char *str, int x, int y, uint8 c0, uint8 void TextDisplayer_MR::restoreScreen() { _vm->restorePage3(); _vm->drawAnimObjects(); - _screen->hideMouse(); _screen->copyRegion(_talkCoords.x, _talkMessageY, _talkCoords.x, _talkMessageY, _talkCoords.w, _talkMessageH, 2, 0, Screen::CR_NO_P_CHECK); - _screen->showMouse(); _vm->flagAnimObjsForRefresh(); _vm->refreshAnimObjects(0); } @@ -261,8 +259,6 @@ void KyraEngine_MR::objectChatInit(const char *str, int object, int vocHigh, int restorePage3(); - _screen->hideMouse(); - _chatTextEnabled = textEnabled(); if (_chatTextEnabled) { objectChatPrintText(str, object); @@ -277,8 +273,6 @@ void KyraEngine_MR::objectChatInit(const char *str, int object, int vocHigh, int } else { _chatVocHigh = _chatVocLow = -1; } - - _screen->showMouse(); } void KyraEngine_MR::objectChatPrintText(const char *str, int object) { |