Revision: 2953
http://sourceforge.net/p/swingme/code/2953
Author: yuranet
Date: 2025-12-05 01:07:31 +0000 (Fri, 05 Dec 2025)
Log Message:
-----------
call correct method
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-04 23:28:23 UTC (rev 2952)
+++ AndroidME/src_MIDP/javax/microedition/lcdui/Canvas.java 2025-12-05 01:07:31 UTC (rev 2953)
@@ -158,7 +158,7 @@
public void repaint(int x, int y, int w, int h) {
if (this.canvasView != null) {
- int graphicsY = canvasView.getHeight() - getHeight();
+ int graphicsY = canvasView.getHeight() - canvasView.viewHeight;
y = y+graphicsY;
// TODO do we want to extend what we repaint to the view edge?
@@ -168,7 +168,7 @@
//#mdebug debug
if (net.yura.mobile.BuildConfig.DEBUG) {
- this.canvasView.postInvalidate(left, top, left + 10, top + 10);
+ this.canvasView.postInvalidate(left, top + graphicsY, left + 10, top + graphicsY + 10);
}
//#enddebug
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|