From e928fd728476d18d7d04829b9561277cecc88d1d Mon Sep 17 00:00:00 2001 From: DeaDDooMER Date: Sat, 4 Mar 2017 16:22:57 +0300 Subject: [PATCH] Fix canvas --- mps/make.sh | 4 ++-- mps/src/M.java | 2 +- mps/src/javax/microedition/lcdui/game/GameCanvas.java | 7 ------- 3 files changed, 3 insertions(+), 10 deletions(-) delete mode 100644 mps/src/javax/microedition/lcdui/game/GameCanvas.java diff --git a/mps/make.sh b/mps/make.sh index 3a65050..c5c0bc0 100755 --- a/mps/make.sh +++ b/mps/make.sh @@ -12,7 +12,7 @@ proguard -injars classes -outjars stubs \ -libraryjars $LIBDIR/midpapi20.jar \ -libraryjars $LIBDIR/cldcapi11.jar \ -libraryjars $LIBDIR/microemu-jsr-120.jar \ - -dontshrink -microedition -dontobfuscate \ + -dontoptimize -dontshrink -microedition -dontobfuscate \ -overloadaggressively -repackageclasses '' -allowaccessmodification \ - -keep public class FW + -keep public class FW extends javax.microedition.midlet.MIDlet rm -rf classes stubs/M.class diff --git a/mps/src/M.java b/mps/src/M.java index 38e09a8..b56e698 100644 --- a/mps/src/M.java +++ b/mps/src/M.java @@ -14,7 +14,7 @@ public class M extends GameCanvas implements Runnable { public static int KP; public static int[] IC; - public M() {} + public M() { super(true); } public static void R() throws Exception {} public void paint(Graphics g) {} public void run() {} diff --git a/mps/src/javax/microedition/lcdui/game/GameCanvas.java b/mps/src/javax/microedition/lcdui/game/GameCanvas.java deleted file mode 100644 index 10b188c..0000000 --- a/mps/src/javax/microedition/lcdui/game/GameCanvas.java +++ /dev/null @@ -1,7 +0,0 @@ -/* Stub for stub for stubs O_o */ - -package javax.microedition.lcdui.game; - -import javax.microedition.lcdui.*; - -public abstract class GameCanvas extends Canvas {} -- 2.29.2