mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-19 00:15:30 +00:00
MADS: Fixes for drawing scene elements
This commit is contained in:
parent
5536b8a933
commit
8cd85f3a00
@ -340,7 +340,7 @@ int TextDisplayList::add(int xp, int yp, uint fontColor, int charSpacing,
|
||||
void TextDisplayList::setDirtyAreas() {
|
||||
Scene &scene = _vm->_game->_scene;
|
||||
|
||||
for (uint idx = 0, dirtyIdx = DIRTY_AREAS_TEXT_DISPLAY_IDX; dirtyIdx < DIRTY_AREAS_SIZE; ++idx, ++dirtyIdx) {
|
||||
for (uint idx = 0, dirtyIdx = DIRTY_AREAS_TEXT_DISPLAY_IDX; dirtyIdx < size(); ++idx, ++dirtyIdx) {
|
||||
if (((*this)[idx]._expire >= 0) || !(*this)[idx]._active)
|
||||
scene._dirtyAreas[dirtyIdx]._active = false;
|
||||
else {
|
||||
@ -353,7 +353,7 @@ void TextDisplayList::setDirtyAreas() {
|
||||
void TextDisplayList::setDirtyAreas2() {
|
||||
Scene &scene = _vm->_game->_scene;
|
||||
|
||||
for (uint idx = 0, dirtyIdx = DIRTY_AREAS_TEXT_DISPLAY_IDX; dirtyIdx < DIRTY_AREAS_SIZE; ++idx, ++dirtyIdx) {
|
||||
for (uint idx = 0, dirtyIdx = DIRTY_AREAS_TEXT_DISPLAY_IDX; idx < size(); ++idx, ++dirtyIdx) {
|
||||
if ((*this)[idx]._active && ((*this)[idx]._expire >= 0)) {
|
||||
scene._dirtyAreas[dirtyIdx].setTextDisplay(&(*this)[idx]);
|
||||
scene._dirtyAreas[dirtyIdx]._textActive = ((*this)[idx]._expire <= 0) ? 0 : 1;
|
||||
|
@ -422,7 +422,7 @@ void Scene::doFrame() {
|
||||
}
|
||||
|
||||
// TODO: Verify correctness of frame wait
|
||||
|
||||
_vm->_events->waitForNextFrame();
|
||||
}
|
||||
|
||||
void Scene::drawElements(bool transitionFlag, bool surfaceFlag) {
|
||||
|
@ -233,7 +233,6 @@ DirtyAreas::DirtyAreas(MADSEngine *vm) : _vm(vm) {
|
||||
}
|
||||
|
||||
void DirtyAreas::merge(int startIndex, int count) {
|
||||
error("TODO: DirtyAreas::merge");
|
||||
if (startIndex >= count)
|
||||
return;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user