Revision: 2957
http://sourceforge.net/p/swingme/code/2957
Author: yuranet
Date: 2025-12-07 17:46:07 +0000 (Sun, 07 Dec 2025)
Log Message:
-----------
clear bitmap on safe area change in android
Modified Paths:
--------------
AndroidME/src_MIDP/javax/microedition/lcdui/Canvas.java
Modified: AndroidME/src_MIDP/javax/microedition/lcdui/Canvas.java
===================================================================
--- AndroidME/src_MIDP/javax/microedition/lcdui/Canvas.java 2025-12-07 16:33:47 UTC (rev 2956)
+++ AndroidME/src_MIDP/javax/microedition/lcdui/Canvas.java 2025-12-07 17:46:07 UTC (rev 2957)
@@ -686,6 +686,12 @@
System.setProperty("safeArea.right", String.valueOf(getPaddingRight()));
System.setProperty("safeArea.bottom", String.valueOf(getPaddingBottom()));
+ // only really needed in software mode as hardware mode seems to always repaint the full screen
+ // we clear at 90% black, we will see a faint ghost of unrepainted pixels
+ if (graphicsBitmap != null) {
+ graphicsBitmap.eraseColor(0xE5000000);
+ }
+
return result;
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|