projects
/
org.ibex.core.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
4edeb03
)
2002/07/15 23:12:49
author
megacz
<megacz@xwt.org>
Fri, 30 Jan 2004 06:48:51 +0000
(06:48 +0000)
committer
megacz
<megacz@xwt.org>
Fri, 30 Jan 2004 06:48:51 +0000
(06:48 +0000)
darcs-hash:
20040130064851
-2ba56-
89b9a1d0103fab10969b4b39c5228de2e649a82a
.gz
CHANGES
patch
|
blob
|
history
src/org/xwt/PNG.java
patch
|
blob
|
history
diff --git
a/CHANGES
b/CHANGES
index
e118bdd
..
3ae9cbd
100644
(file)
--- a/
CHANGES
+++ b/
CHANGES
@@
-250,3
+250,5
@@
15-Jul megacz HTTP.java: implemented isInNet(), weekdayRange(), now
checks environment vars for proxies
15-Jul megacz HTTP.java: implemented isInNet(), weekdayRange(), now
checks environment vars for proxies
+
+15-Jul megacz PNG.java: fixed 8bpp bug
\ No newline at end of file
diff --git
a/src/org/xwt/PNG.java
b/src/org/xwt/PNG.java
index
f0d9b7e
..
1c06968
100644
(file)
--- a/
src/org/xwt/PNG.java
+++ b/
src/org/xwt/PNG.java
@@
-255,9
+255,9
@@
public class PNG implements ImageDecoder {
} else {
data[i] =
0xFF000000 |
} else {
data[i] =
0xFF000000 |
- ((palette[3 * pix[i] + 0] & 0xff) << 16) |
- ((palette[3 * pix[i] + 1] & 0xff) << 8) |
- (palette[3 * pix[i] + 2] & 0xff);
+ ((palette[3 * (pix[i] & 0xff) + 0] & 0xff) << 16) |
+ ((palette[3 * (pix[i] & 0xff) + 1] & 0xff) << 8) |
+ (palette[3 * (pix[i] & 0xff) + 2] & 0xff);
}
}
}
}