package b; import c.*; import javax.microedition.lcdui.*; import Main.PPM; import d.j; import d.k; import java.io.DataInputStream; import java.io.IOException; import java.util.Random; import java.util.Vector; public final class c extends Canvas{ private Font IIII; private Font IIIl; private Font IIlI; private int IIll; private int IlII; private Image IlIl; private Image IllI; private Graphics Illl; private Random lIII; private Image lIIl; private Displayable lIlI; private int lIll; private int llII; private String llIl[]; private int lllI; private byte llll; private int tttt; private int tttl; private String ttlt[]; private long ttll; private String tltt[]; private static Class tltl; public c(byte b, Displayable displayable, Image image) { IIII = Font.getFont(0, 0, 0); IIIl = Font.getFont(0, 1, 0); IIlI = Font.getFont(0, 1, 8); IlIl = null; lllI = 0; setFullScreenMode(true); IIll = getWidth(); IlII = getHeight(); lIlI = displayable; IllI = image; llll = b; lIIl = Image.createImage("/res/icons.png"); dup 1 over 0 pop displayable invoke printStackTrace switch (b) { case 0: llIl = { Main.b.IIII[0], Main.b.IIII[1], Main.b.IIII[129], Main.b.IIII[2], Main.b.IIII[3] }; break; case 1: llIl = { Main.b.IIII[80], Main.b.IIII[81], Main.b.IIII[65], Main.b.IIII[28] }; break; case 2: llIl = { Main.b.IIII[0], Main.b.IIII[1], Main.b.IIII[56], Main.b.IIII[129], Main.b.IIII[2], Main.b.IIII[3] }; break; case 3: (displayable = new Vector()).addElement(Main.b.IIII[86]); displayable.addElement(Main.b.IIII[142]); if (h.ItIt != 0 && Main.c.lltl) displayable.addElement(Main.b.IIII[47]); if (h.Ittt) { displayable.addElement(Main.b.IIII[82]); displayable.addElement(Main.b.IIII[88]); displayable.addElement(Main.b.IIII[89]); displayable.addElement(Main.b.IIII[87]); } if (h.tIII) { displayable.addElement(Main.b.IIII[83]); displayable.addElement(Main.b.IIII[84]); displayable.addElement(Main.b.IIII[85]); displayable.addElement(Main.b.IIII[90]); } llIl = new String[displayable.size()]; for (b = 0; b < llIl.length; b++) llIl[b] = (String)displayable.elementAt(b); break; case 4: llIl = { Main.b.IIII[65], Main.b.IIII[110], Main.b.IIII[152], Main.b.IIII[92], Main.b.IIII[91] }; ttlt = { Main.b.IIII[66], Main.b.IIII[10], Main.b.IIII[67], Main.b.IIII[14] }; break; case 5: llIl = { Main.b.IIII[117], Main.b.IIII[9], Main.b.IIII[45], Main.b.IIII[93], Main.b.IIII[6], Main.b.IIII[94] }; tltt = { Main.b.IIII[68], Main.b.IIII[69], Main.b.IIII[70], Main.b.IIII[71], Main.b.IIII[72], Main.b.IIII[21], Main.b.IIII[73], Main.b.IIII[74], Main.b.IIII[75], Main.b.IIII[76], Main.b.IIII[77], Main.b.IIII[78] + "-", "XOR", "OR", Main.b.IIII[78] + "+", Main.b.IIII[79] + " RGB", Main.b.IIII[111], Main.b.IIII[112], Main.b.IIII[76] + " 2", Main.b.IIII[113] + " 1", Main.b.IIII[114], Main.b.IIII[115], Main.b.IIII[116], Main.b.IIII[118], Main.b.IIII[118], Main.b.IIII[119], Main.b.IIII[74], Main.b.IIII[21] + " 1", Main.b.IIII[21] + " 2", Main.b.IIII[134], Main.b.IIII[135], Main.b.IIII[113] + " 2", Main.b.IIII[99], Main.b.IIII[136], Main.b.IIII[141] + " " + Main.b.IIII[102], Main.b.IIII[141] + " " + Main.b.IIII[103], Main.b.IIII[143], Main.b.IIII[147], "Fractal Julia", "Box Blur", Main.b.IIII[96], Main.b.IIII[95], Main.b.IIII[164], "Tile" }; break; } tttl = IIII.getHeight() + 2; if (!Main.c.IItI) { lIII = new Random(); lIll = e.IIII((lIII.nextInt() >>> 1) % 120 + 50, 255 - (lIII.nextInt() >>> 1) % 90, 255 - (lIII.nextInt() >>> 1) % 90, 255 - (lIII.nextInt() >>> 1) % 90); llII = e.IIII((lIII.nextInt() >>> 1) % 120 + 50, 255 - (lIII.nextInt() >>> 1) % 90, 255 - (lIII.nextInt() >>> 1) % 90, 255 - (lIII.nextInt() >>> 1) % 90); IlIl = Image.createImage(IIll, IlII - 2 * IIII.getHeight()); Illl = IlIl.getGraphics(); for (displayable = 0; displayable < (lIII.nextInt() >>> 1) % 50; displayable++) IIII(); } } public c(byte b) { IIII = Font.getFont(0, 0, 0); IIIl = Font.getFont(0, 1, 0); IIlI = Font.getFont(0, 1, 8); IlIl = null; lllI = 0; setFullScreenMode(true); IIll = getWidth(); IlII = getHeight(); llll = 0; lIIl = Image.createImage("/res/icons.png"); dup 1 over 0 pop b invoke printStackTrace llIl = { Main.b.IIII[0], Main.b.IIII[1], Main.b.IIII[129], Main.b.IIII[2], Main.b.IIII[3] }; tttl = IIII.getHeight() + 2; if (!Main.c.IItI) { lIII = new Random(); lIll = e.IIII((lIII.nextInt() >>> 1) % 120 + 50, 255 - (lIII.nextInt() >>> 1) % 90, 255 - (lIII.nextInt() >>> 1) % 90, 255 - (lIII.nextInt() >>> 1) % 90); llII = e.IIII((lIII.nextInt() >>> 1) % 120 + 50, 255 - (lIII.nextInt() >>> 1) % 90, 255 - (lIII.nextInt() >>> 1) % 90, 255 - (lIII.nextInt() >>> 1) % 90); IlIl = Image.createImage(IIll, IlII - 2 * IIII.getHeight()); Illl = IlIl.getGraphics(); for (b = 0; b < (lIII.nextInt() >>> 1) % 50; b++) IIII(); } } private void IIII(int i) { i = llIl[i]; if (llll == 0) { if (i.equals(Main.b.IIII[0])) { j J1 = new j(this); PPM.IIIl.setCurrent(J1); } if (i.equals(Main.b.IIII[1])) PPM.IIIl.setCurrent(new h(Main.c.ltlt)); if (i.equals(Main.b.IIII[129])) { a A1; (A1 = new a()).IIII("/lang/help", this, Main.b.IIII[129]); PPM.IIIl.setCurrent(A1); } if (i.equals(Main.b.IIII[2])) PPM.IIIl.setCurrent(new e(2)); if (i.equals(Main.b.IIII[3])) PPM.IIlI.destroyApp(true); } if (llll == 1) { if (i.equals(Main.b.IIII[80])) PPM.IIIl.setCurrent(new c(2, this, IllI)); if (i.equals(Main.b.IIII[81])) PPM.IIIl.setCurrent(new c(3, this, IllI)); if (i.equals(Main.b.IIII[65])) PPM.IIIl.setCurrent(new c(4, this, IllI)); if (i.equals(Main.b.IIII[28])) PPM.IIIl.setCurrent(new c(5, this, IllI)); } if (llll == 2) { if (i.equals(Main.b.IIII[0])) { j J2 = new j(lIlI); PPM.IIIl.setCurrent(J2); } if (i.equals(Main.b.IIII[1])) PPM.IIIl.setCurrent(new h(Main.c.ltlt)); if (i.equals(Main.b.IIII[56])) { Main.c.ttIt = IllI; PPM.IIIl.setCurrent(new g.a(lIlI)); } if (i.equals(Main.b.IIII[129])) { a A2; (A2 = new a()).IIII("/lang/help", this, Main.b.IIII[129]); PPM.IIIl.setCurrent(A2); } if (i.equals(Main.b.IIII[2])) PPM.IIIl.setCurrent(new e(1)); if (i.equals(Main.b.IIII[3])) PPM.IIlI.destroyApp(true); } if (llll == 3) { if (i.equals(Main.b.IIII[47])) { if (h.ItIt == 0 || !Main.c.lltl) PPM.IIIl.setCurrent(PPM.IIlI.IIll); else { k K = new k(h.ItII, 1); PPM.IIIl.setCurrent(K); } } if (i.equals(Main.b.IIII[142])) { h.IIIl(); PPM.IIIl.setCurrent(PPM.IIlI.IIll); } if (i.equals(Main.b.IIII[82])) { h.IIlI(); PPM.IIIl.setCurrent(PPM.IIlI.IIll); } if (i.equals(Main.b.IIII[83])) { h.tlll = 1; h.lltl = true; PPM.IIIl.setCurrent(PPM.IIlI.IIll); } if (i.equals(Main.b.IIII[84])) { h.tlll = 2; h.lltl = true; PPM.IIIl.setCurrent(PPM.IIlI.IIll); } if (i.equals(Main.b.IIII[85])) PPM.IIIl.setCurrent(new g.f(this, 1)); if (i.equals(Main.b.IIII[86])) { PPM.IIlI.IIll.IIll(); PPM.IIIl.setCurrent(PPM.IIlI.IIll); } if (i.equals(Main.b.IIII[87])) { h.IlIl(); PPM.IIIl.setCurrent(PPM.IIlI.IIll); } if (i.equals(Main.b.IIII[88])) { h.IIlI(); PPM.IIlI.IIll.IIll(); PPM.IIIl.setCurrent(PPM.IIlI.IIll); } if (i.equals(Main.b.IIII[89])) { PPM.IIlI.IIll.IlII(); PPM.IIIl.setCurrent(PPM.IIlI.IIll); } if (i.equals(Main.b.IIII[90])) { h.IllI(); PPM.IIIl.setCurrent(PPM.IIlI.IIll); } } if (llll == 4) { if (i.equals(Main.b.IIII[65])) PPM.IIIl.setCurrent(new d.f(this, IllI)); if (i.equals(Main.b.IIII[91])) PPM.IIIl.setCurrent(new j(1)); if (i.equals(Main.b.IIII[92])) { d.d D = new d.d(PPM.IIlI.IllI, ttlt, 2); PPM.IIIl.setCurrent(D); } if (i.equals(Main.b.IIII[110])) PPM.IIIl.setCurrent(new e.a(this)); if (i.equals(Main.b.IIII[152])) PPM.IIIl.setCurrent(new e.b(this)); } if (llll == 5) { if (i.equals(Main.b.IIII[117])) PPM.IIIl.setCurrent(new g(IllI)); if (i.equals(Main.b.IIII[9])) PPM.IIIl.setCurrent(new p()); if (i.equals(Main.b.IIII[45])) PPM.IIIl.setCurrent(new l()); if (i.equals(Main.b.IIII[93])) { (local = new Image[tltt.length])[0] = IllI; local = new d.d(local, tltt, 3); PPM.IIIl.setCurrent(local); } if (i.equals(Main.b.IIII[6])) new s(); if (i.equals(Main.b.IIII[94])) PPM.IIIl.setCurrent(new d.b(lIlI, Main.b.IIII[94], 0)); } } protected final void paint(Graphics graphics) { int j; setFullScreenMode(true); graphics.setFont(IIII); graphics.setColor(Main.c.IIl1); graphics.fillRect(0, 0, IIll, IlII); int i = 2 * IIII.getHeight(); if (!Main.c.IItI && IlIl != null) { d.c.IIII(graphics, -7030807, -2234379, 0, 0, IIll, IlII); graphics.drawImage(IlIl, IIll / 2, IlII / 2, 3); e.IIII(graphics, llII, lIll, 0, i, IIll, tttt); } switch (llll) { case 0: if (Main.c.llII == 6) d.c.IIII(graphics, "\u0421 \u0414\u043d\u0451\u043c \u0421\u0432\u044f\u0442\u043e\u0433\u043e \u0412\u0430\u043b\u0435\u043d\u0442\u0438\u043d\u0430"); else d.c.IIII(graphics, "ProPaintMobile. " + Main.d.IIII); d.c.IIII(graphics, Main.b.IIII[5], Main.b.IIII[3]); break; case 1: d.c.IIII(graphics, Main.b.IIII[29]); d.c.IIII(graphics, Main.b.IIII[5], Main.b.IIII[4]); break; case 2: d.c.IIII(graphics, Main.b.IIII[80]); d.c.IIII(graphics, Main.b.IIII[5], Main.b.IIII[4]); break; case 3: d.c.IIII(graphics, Main.b.IIII[81]); d.c.IIII(graphics, Main.b.IIII[5], Main.b.IIII[4]); break; case 4: d.c.IIII(graphics, Main.b.IIII[65]); d.c.IIII(graphics, Main.b.IIII[5], Main.b.IIII[4]); break; case 5: d.c.IIII(graphics, Main.b.IIII[28]); d.c.IIII(graphics, Main.b.IIII[5], Main.b.IIII[4]); break; } if (llll == 3 && llIl.length > 8) { graphics.setFont(IIlI); tttl = IIlI.getHeight(); } else graphics.setFont(IIIl); graphics.setColor(Main.c.III1); graphics.translate(0, i); if (llIl.length > 0) { graphics.setColor(Main.c.IlI1); graphics.fillRect(-1, lllI * tttl, IIll, tttl - 1); if (Main.c.llII == 0 && !Main.c.IItI) { e.IIII(graphics, { 671088640 | Main.c.lII1, 1342177280 | Main.c.Ill1 }, -1, lllI * tttl, IIll, tttl - 1); e.IIII(graphics, { 1342177280 | Main.c.lII1, 503316480 | Main.c.Ill1 }, -1, lllI * tttl, IIll, tttl - 1); } graphics.setColor(Main.c.lI1l); graphics.drawRect(-1, lllI * tttl - 1, IIll, tttl); } tttt = 0; for (j = 0; j < llIl.length; j++) { graphics.setColor(Main.c.ll1I); if (tttt == lllI * tttl) { graphics.setColor(Main.c.lI1I); graphics.drawString(llIl[j], 19, tttt + 1, 0); graphics.setColor(Main.c.ll1l); } if (llIl[j].equals(Main.b.IIII[0]) || llIl[j].equals(Main.b.IIII[80]) || llIl[j].equals(Main.b.IIII[93]) || llIl[j].equals(Main.b.IIII[117]) || llIl[j].equals(Main.b.IIII[152])) graphics.drawRegion(lIIl, 0, 0, 16, 16, 0, 1, tttt + 1, 0); if (llIl[j].equals(Main.b.IIII[1])) graphics.drawRegion(lIIl, 16, 0, 16, 16, 0, 1, tttt + 1, 0); if (llIl[j].equals(Main.b.IIII[56])) graphics.drawRegion(lIIl, 32, 0, 16, 16, 0, 1, tttt + 1, 0); if (llIl[j].equals(Main.b.IIII[2])) graphics.drawRegion(lIIl, 48, 0, 16, 16, 0, 1, tttt + 1, 0); if (llIl[j].equals(Main.b.IIII[129])) graphics.drawRegion(lIIl, 48, 0, 16, 16, 0, 1, tttt + 1, 0); if (llIl[j].equals(Main.b.IIII[3])) graphics.drawRegion(lIIl, 64, 0, 16, 16, 0, 1, tttt + 1, 0); if (llIl[j].equals(Main.b.IIII[28])) graphics.drawRegion(lIIl, 80, 0, 16, 16, 0, 1, tttt + 1, 0); if (llIl[j].equals(Main.b.IIII[81])) graphics.drawRegion(lIIl, 96, 0, 16, 16, 0, 1, tttt + 1, 0); if (llIl[j].equals(Main.b.IIII[65]) || llIl[j].equals(Main.b.IIII[110])) graphics.drawRegion(lIIl, 112, 0, 16, 16, 0, 1, tttt + 1, 0); if (llIl[j].equals(Main.b.IIII[6])) graphics.drawRegion(lIIl, 128, 0, 16, 16, 0, 1, tttt + 1, 0); if (llIl[j].equals(Main.b.IIII[9]) || llIl[j].equals(Main.b.IIII[45])) graphics.drawImage(PPM.IIlI.IlIl[3], 18, tttt + 1, 24); if (llIl[j].equals(Main.b.IIII[94])) graphics.drawImage(PPM.IIlI.IlIl[17], 18, tttt + 1, 24); if (llIl[j].equals(Main.b.IIII[91])) graphics.drawImage(PPM.IIlI.IlIl[1], 18, tttt + 1, 24); if (llIl[j].equals(Main.b.IIII[92])) graphics.drawImage(PPM.IIlI.IllI[0], 18, tttt + 1, 24); graphics.drawString(llIl[j], 18, tttt, 0); tttt += tttl; } graphics.setColor(0); graphics.drawLine(-1, tttt + 1, IIll + 1, tttt + 1); graphics.drawLine(-1, tttt + 2, IIll + 1, tttt + 2); graphics.drawLine(-1, -1, IIll + 1, -1); graphics.drawLine(-1, -2, IIll + 1, -2); graphics.translate(0, -i); } public final void keyPressed(int i) { int j = getGameAction(i); if (!Main.c.IItI) IIII(); repaint(); if (j == 1 || j == 2) { lllI--; if (lllI < 0) lllI = llIl.length - 1; } if (j == 6 || j == 5) { lllI++; if (lllI > llIl.length - 1) lllI = 0; } if (j == 8 || i == Main.d.IIIl) IIII(lllI); if (i == Main.d.IIlI) { switch (llll) { case 0: PPM.IIlI.destroyApp(true); return; case 1: PPM.IIIl.setCurrent(PPM.IIlI.IIll); return; case 2: PPM.IIIl.setCurrent(new c(1, this, IllI)); return; case 3: PPM.IIIl.setCurrent(new c(1, this, IllI)); return; case 4: PPM.IIIl.setCurrent(new c(1, this, IllI)); return; case 5: PPM.IIIl.setCurrent(new c(1, this, IllI)); break; } } } protected final void pointerPressed(int i, int j) { int k; k = d.c.IIIl(); if (i < k * 2 && j > IlII - k) { IIII(lllI); return; } if (i <= IIll - k * 2 || j <= IlII - k) goto 207 else 52; expression llll switch case 0: goto 96 case 1: goto 106 case 2: goto 121 case 3: goto 143 case 4: goto 165 case 5: goto 187 default: goto 206 PPM.IIlI.destroyApp(true); PPM.IIIl.setCurrent(PPM.IIlI.IIll); PPM.IIIl.setCurrent(new c(1, this, IllI)); PPM.IIIl.setCurrent(new c(1, this, IllI)); PPM.IIIl.setCurrent(new c(1, this, IllI)); PPM.IIIl.setCurrent(new c(1, this, IllI)); return; i = lllI; if ((j = j - 2 * IIII.getHeight()) > 0 && j < llIl.length * tttl) lllI = j / tttl; if (System.currentTimeMillis() - ttll < 700 && i == lllI) IIII(lllI); ttll = System.currentTimeMillis(); repaint(); } private void IIII() { c C2; if (IlIl == null) return; if (Main.c.llII == 6) { c C1; (C1 = this).Illl.setColor((C1.lIII.nextInt() >>> 1) % 80 + 150, (C1.lIII.nextInt() >>> 1) % 80 + 150, (C1.lIII.nextInt() >>> 1) % 80 + 150); IIII(C1.Illl, (C1.lIII.nextInt() >>> 1) % 7, (C1.lIII.nextInt() >>> 1) % 3, (C1.lIII.nextInt() >>> 1) % C1.IIll - 20, (C1.lIII.nextInt() >>> 1) % C1.IlII - 20); return; } switch (((C2 = this).lIII.nextInt() >>> 1) % 8) { case 0: case 1: case 2: case 3: case 6: C2.Illl.setColor((C2.lIII.nextInt() >>> 1) % 80 + 150, (C2.lIII.nextInt() >>> 1) % 80 + 150, (C2.lIII.nextInt() >>> 1) % 80 + 150); C2.Illl.drawLine((C2.lIII.nextInt() >>> 1) % C2.IIll, (C2.lIII.nextInt() >>> 1) % C2.IlII, (C2.lIII.nextInt() >>> 1) % C2.IIll, (C2.lIII.nextInt() >>> 1) % C2.IlII); return; case 4: case 5: C2.Illl.setColor((C2.lIII.nextInt() >>> 1) % 80 + 150, (C2.lIII.nextInt() >>> 1) % 80 + 150, (C2.lIII.nextInt() >>> 1) % 80 + 150); C2.Illl.drawRect((C2.lIII.nextInt() >>> 1) % C2.IIll, (C2.lIII.nextInt() >>> 1) % C2.IlII, (C2.lIII.nextInt() >>> 1) % C2.IIll, (C2.lIII.nextInt() >>> 1) % C2.IlII); return; case 7: case 8: C2.Illl.setColor((C2.lIII.nextInt() >>> 1) % 80 + 150, (C2.lIII.nextInt() >>> 1) % 80 + 150, (C2.lIII.nextInt() >>> 1) % 80 + 150); break; default: } C2.Illl.drawArc((C2.lIII.nextInt() >>> 1) % C2.IIll, (C2.lIII.nextInt() >>> 1) % C2.IlII, (C2.lIII.nextInt() >>> 1) % C2.IIll, (C2.lIII.nextInt() >>> 1) % C2.IlII, (C2.lIII.nextInt() >>> 1) % 360, (C2.lIII.nextInt() >>> 1) % 360); } private static void IIII(Graphics graphics, int i1, int j1, int k1, int i2) { int j2; int k2; try { i1 = ((tltl == null) ? (tltl = IIII("java.lang.Class")) : tltl).getResourceAsStream("/brushes/" + String.valueOf(i1 + 45) + ".ppb"); (i1 = new DataInputStream(i1)).readUTF(); byte aab[][] = new byte[i1.readShort()][i1.readShort()]; j2 = 0; } catch (Exception e) { } for (; j2 < aab.length; j2++) { for (k2 = 0; k2 < aab[0].length; k2++) { aab[j2][k2] = i1.readByte(); if (aab[j2][k2] == 1) graphics.fillRect(k1 + j2 * j1, i2 + k2 * j1, j1, j1); } } i1.close(); return; } private static Class IIII(String string) { expression Class.forName(string) return pop string throw new NoClassDefFoundError(string.getMessage()); } }