Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sword25: image trace on quick cursor changes fix #1579

Merged
merged 1 commit into from Apr 9, 2019
Merged

Sword25: image trace on quick cursor changes fix #1579

merged 1 commit into from Apr 9, 2019

Conversation

ghost
Copy link

@ghost ghost commented Apr 8, 2019

Fix: https://bugs.scummvm.org/ticket/7061
Additional check in RenderObjectQueue::exists() that
checks if a RenderObject should be
redrawn.
After the change RenderObjectManager::render()
was tested to update 0 objects in the first active scene,
when player does nothing including not moving cursor
& 2 objects when player moves cursor.
It seems glitch happens when cursor image
changes from image X to image Y to image X in a short
time frame leaving image of state Y not re-rendered.

@ghost
Copy link
Author

ghost commented Apr 8, 2019


Tested on:
ScummVM 2.1.0git5089-g59c0383c6f (Apr 7 2019 14:55:14)
Features compiled in: Vorbis FLAC MP3 ALSA SEQ TiMidity RGB zLib MPEG2 FluidSynth Theora AAC A/52 FreeType2 JPEG PNG cloud (servers, local)

DISTRIB_ID=ManjaroLinux
DISTRIB_RELEASE=18.0.3
DISTRIB_CODENAME=Illyria
DISTRIB_DESCRIPTION="Manjaro Linux"

@bluegr
Copy link
Member

bluegr commented Apr 9, 2019

Thanks! The dirty rects code was added when the engine was merged into ScummVM, so it’s good that you found the bug there, and tested the bugfix :)

Please, fix spacing: the rest of the checks are split, one per line, so you should do the same with the new check, so that this pull request can be merged

@ghost
Copy link
Author

ghost commented Apr 9, 2019

Done. I am glad to be of some help.

@bluegr
Copy link
Member

bluegr commented Apr 9, 2019

Thanks for your work! Merging

@bluegr bluegr merged commit acb3edb into scummvm:master Apr 9, 2019
AndywinXp added a commit that referenced this pull request Jan 8, 2023
There was a nasty bug in the fuel tower room, when the cops arrive at the
tower and the player regains control, in which the camera would be brought up
and then down again.

While I was there, since this is the same domain, I rechecked the v7-8 camera
code from the disasm, made some corrections, and properly fixed #1195 and
#1579. Another workaround bites the dust :)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant