DEADSOFTWARE

Fix canvas
authorDeaDDooMER <deaddoomer@deadsoftware.ru>
Sat, 4 Mar 2017 13:22:57 +0000 (16:22 +0300)
committerDeaDDooMER <deaddoomer@deadsoftware.ru>
Sat, 4 Mar 2017 13:22:57 +0000 (16:22 +0300)
mps/make.sh
mps/src/M.java
mps/src/javax/microedition/lcdui/game/GameCanvas.java [deleted file]

index 3a650504b7e623ed14c3325ccd076b8df1c05d94..c5c0bc0559aad096137ce46f0459e0fe7bbbdea3 100755 (executable)
@@ -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
index 38e09a846106b080aa04aea86e4166fbc9f24258..b56e698f1ea7463c965cabf410af4ce2aaf991b1 100644 (file)
@@ -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 (file)
index 10b188c..0000000
+++ /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 {}