Adapted LavosSpawn's idea for more efficient screen updating. It still

renders the entire screen every frame, but it tries to update (i.e. copy to
the backend) only the parts of the screen that actually changed. At least
approximately so.

svn-id: r12142
This commit is contained in:
Torbjörn Andersson 2004-01-04 15:11:30 +00:00
parent 5607f41e2d
commit 8a91ae3257
9 changed files with 118 additions and 24 deletions

View file

@ -283,7 +283,7 @@ int Dialog::run() {
while (!_finish) {
// So that the menu icons will reach their full size
_gui->_vm->_graphics->processMenu();
_gui->_vm->_graphics->updateDisplay();
_gui->_vm->_graphics->updateDisplay(false);
int16 newMouseX = _gui->_vm->_input->_mouseX;
int16 newMouseY = _gui->_vm->_input->_mouseY + 40;