From 436bae498dd44429d9239f826ab5b243ad9dc1b8 Mon Sep 17 00:00:00 2001 From: AShiningRay Date: Sun, 3 Nov 2024 18:25:48 -0300 Subject: [PATCH] Canvas: Don't synchronize repaint() Caused a regression in Crash of the Titans, which was now stuck in a white screen at boot. Besides, hopefully the locks we have in place are enough for synchronization. --- src/javax/microedition/lcdui/Canvas.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/javax/microedition/lcdui/Canvas.java b/src/javax/microedition/lcdui/Canvas.java index 3a927dde..1a7caf75 100644 --- a/src/javax/microedition/lcdui/Canvas.java +++ b/src/javax/microedition/lcdui/Canvas.java @@ -155,7 +155,7 @@ public void pointerPressed(int x, int y) { } public void pointerReleased(int x, int y) { } - public synchronized void repaint() + public void repaint() { Display.LCDUILock.lock(); try { @@ -180,7 +180,7 @@ public synchronized void repaint() } } - public synchronized void repaint(int x, int y, int width, int height) + public void repaint(int x, int y, int width, int height) { Display.LCDUILock.lock(); try {