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 (parent:
e0849b0
)
2002/04/30 01:41:01
author
megacz
<megacz@xwt.org>
Fri, 30 Jan 2004 06:46:18 +0000
(06:46 +0000)
committer
megacz
<megacz@xwt.org>
Fri, 30 Jan 2004 06:46:18 +0000
(06:46 +0000)
darcs-hash:
20040130064618
-2ba56-
0de8af2309e0a173b8e994785f1a3bacc666c587
.gz
CHANGES
patch
|
blob
|
history
src/org/xwt/Box.java
patch
|
blob
|
history
diff --git
a/CHANGES
b/CHANGES
index
8d675ab
..
123109f
100644
(file)
--- a/
CHANGES
+++ b/
CHANGES
@@
-81,3
+81,7
@@
28-Apr megacz Platform.java: fixed bug that caused italicized text to
automatically become bold.
28-Apr megacz Platform.java: fixed bug that caused italicized text to
automatically become bold.
+29-Apr megacz Box.java: moved underline up by one pixel (goes with
+ last change).
+
+
diff --git
a/src/org/xwt/Box.java
b/src/org/xwt/Box.java
index
ba54b9c
..
f3c92d6
100644
(file)
--- a/
src/org/xwt/Box.java
+++ b/
src/org/xwt/Box.java
@@
-969,15
+969,15
@@
public final class Box extends JSObject {
if (font.lastIndexOf('d') > i) {
for(int j = pos(0) + pad(0); j < pos(0) + pad(0) + textdim(0); j += 2)
if (font.lastIndexOf('d') > i) {
for(int j = pos(0) + pad(0); j < pos(0) + pad(0) + textdim(0); j += 2)
- buf.fillRect(j, pos(1) + pad(1) + (xwf == null ? Platform.getMaxAscent(font) : xwf.getMaxAscent()) + 3,
- j + 1, pos(1) + pad(1) + (xwf == null ? Platform.getMaxAscent(font) : xwf.getMaxAscent()) + 3 + 1,
+ buf.fillRect(j, pos(1) + pad(1) + (xwf == null ? Platform.getMaxAscent(font) : xwf.getMaxAscent()) + 2,
+ j + 1, pos(1) + pad(1) + (xwf == null ? Platform.getMaxAscent(font) : xwf.getMaxAscent()) + 2 + 1,
textcolor);
} else if (font.lastIndexOf('u') > i) {
buf.fillRect(pos(0) + pad(0),
textcolor);
} else if (font.lastIndexOf('u') > i) {
buf.fillRect(pos(0) + pad(0),
- pos(1) + pad(1) + (xwf == null ? Platform.getMaxAscent(font) : xwf.getMaxAscent()) + 3,
+ pos(1) + pad(1) + (xwf == null ? Platform.getMaxAscent(font) : xwf.getMaxAscent()) + 2,
pos(0) + pad(0) + textdim(0),
pos(0) + pad(0) + textdim(0),
- pos(1) + pad(1) + (xwf == null ? Platform.getMaxAscent(font) : xwf.getMaxAscent()) + 3 + 1,
+ pos(1) + pad(1) + (xwf == null ? Platform.getMaxAscent(font) : xwf.getMaxAscent()) + 2 + 1,
textcolor);
}
textcolor);
}