My favorites | Sign in
Project Home Downloads Wiki Issues Source
READ-ONLY: This project has been archived. For more information see this post.
Search
for
  Advanced search   Search tips   Subscriptions

Issue 17 attachment: sprite.patch (1.1 KB)

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
Index: microemu-midp/src/main/java/javax/microedition/lcdui/game/Sprite.java
===================================================================
--- microemu-midp/src/main/java/javax/microedition/lcdui/game/Sprite.java (revision 1761)
+++ microemu-midp/src/main/java/javax/microedition/lcdui/game/Sprite.java Thu Jul 03 14:09:44 PDT 2008
@@ -843,8 +843,8 @@

int fW = getWidth();
int fH = getHeight();
- int fX = fW * (f % rows);
- int fY = fH * (f / rows);
+ int fX = fW * (f % cols);
+ int fY = fH * (f / cols);

if (rgbData == null) {
rgbData = new int[fW*fH];
@@ -930,8 +930,8 @@

fW = t.getWidth();
fH = t.getHeight();
- fX = fW * (f % t.rows);
- fY = fH * (f / t.rows);
+ fX = fW * (f % t.cols);
+ fY = fH * (f / t.cols);
} else if (o instanceof TiledLayer) {
another = false;
TiledLayer layer = (TiledLayer) o;
Powered by Google Project Hosting