Fix menu buttons never rendering: reset canvas transform per repaint

The RcoRenderer applied translate/scale to the shared GraphicsContext on
every render, so repeated repaints (menu animations fire many) compounded
the scale and pushed the buttons off-screen. Reset the transform each
render. Also decompress zlib/RLZ RCO images (previously returned raw).
This commit is contained in:
2026-09-16 08:28:30 -04:00
parent 539b8e295b
commit 0e7accad19
2 changed files with 34 additions and 1 deletions
@@ -94,6 +94,9 @@ public final class RcoRenderer implements Display {
GraphicsContext g = canvas.getGraphicsContext2D();
double w = canvas.getWidth();
double h = canvas.getHeight();
// Reset the transform so repeated repaints do not accumulate scale.
g.setTransform(1.0, 0.0, 0.0, 1.0, 0.0, 0.0);
g.clearRect(0, 0, w, h);
// RCO content is authored for the PSP movie player framebuffer, which