mirror of
https://github.com/libretro/scummvm.git
synced 2025-04-01 14:21:41 +00:00
GROOVIE: Use OSystem::fillScreen() where possible
This commit is contained in:
parent
838718ea85
commit
c7fbebf1ea
@ -1827,10 +1827,11 @@ void Script::o_printstring() {
|
||||
stringstorage[counter] = 0;
|
||||
|
||||
Common::Rect topbar(640, 80);
|
||||
Graphics::Surface *gamescreen = _vm->_system->lockScreen();
|
||||
|
||||
// Clear the top bar
|
||||
gamescreen->fillRect(topbar, 0);
|
||||
_vm->_system->fillScreen(topbar, 0);
|
||||
|
||||
Graphics::Surface *gamescreen = _vm->_system->lockScreen();
|
||||
|
||||
// Draw the string
|
||||
printString(gamescreen, stringstorage);
|
||||
@ -1870,10 +1871,10 @@ void Script::o_hotspot_slot() {
|
||||
return;
|
||||
}
|
||||
|
||||
Graphics::Surface *gamescreen = _vm->_system->lockScreen();
|
||||
|
||||
// Clear the top bar
|
||||
gamescreen->fillRect(removeText, 0); // 0 works for both color formats (Groovie V1 and V2)
|
||||
_vm->_system->fillScreen(removeText, 0); // 0 works for both color formats (Groovie V1 and V2)
|
||||
|
||||
Graphics::Surface *gamescreen = _vm->_system->lockScreen();
|
||||
|
||||
printString(gamescreen, _saveNames[slot].c_str());
|
||||
|
||||
@ -1885,12 +1886,7 @@ void Script::o_hotspot_slot() {
|
||||
|
||||
} else {
|
||||
if (_hotspotSlot == slot) {
|
||||
Graphics::Surface *gamescreen;
|
||||
gamescreen = _vm->_system->lockScreen();
|
||||
|
||||
gamescreen->fillRect(removeText, 0); // 0 works for both color formats (Groovie V1 and V2)
|
||||
|
||||
_vm->_system->unlockScreen();
|
||||
_vm->_system->fillScreen(removeText, 0); // 0 works for both color formats (Groovie V1 and V2)
|
||||
|
||||
// Removing the slot highlight
|
||||
_hotspotSlot = (uint16)-1;
|
||||
|
Loading…
x
Reference in New Issue
Block a user