Skip to content

Commit

Permalink
Canvas: Don't synchronize repaint()
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
AShiningRay committed Nov 3, 2024
1 parent f5fb981 commit 436bae4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/javax/microedition/lcdui/Canvas.java
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -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 {
Expand Down

0 comments on commit 436bae4

Please sign in to comment.