From: DeaDDooMER Date: Sat, 4 Mar 2017 13:22:57 +0000 (+0300) Subject: Fix canvas X-Git-Url: http://deadsoftware.ru/gitweb?a=commitdiff_plain;h=e928fd728476d18d7d04829b9561277cecc88d1d;p=mp3cc.git Fix canvas --- 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 {}