From 2b4d1d731fdd53e0971c91bdeb2479d7816f7074 Mon Sep 17 00:00:00 2001 From: AShiningRay Date: Fri, 21 Feb 2025 12:55:34 -0300 Subject: [PATCH] Display: More improvements to serial calls. Partially fixes the Samsung 240x320 version of SpongeBob Movie, which does some weird serial calls at startup and in turn sometimes boots up with a white screen. --- src/javax/microedition/lcdui/Displayable.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/javax/microedition/lcdui/Displayable.java b/src/javax/microedition/lcdui/Displayable.java index 8564d35d..37132bdc 100644 --- a/src/javax/microedition/lcdui/Displayable.java +++ b/src/javax/microedition/lcdui/Displayable.java @@ -362,7 +362,7 @@ protected void _invalidate() { isValidating = true; - try { render(); } + try { Mobile.getDisplay().callSerially(() -> { render(); }); } finally { isValidating = false; } } }