~mdw
/
sgt
/
puzzles
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix the Java front end's vertical text positioning when
[sgt/puzzles]
/
PuzzleApplet.java
diff --git
a/PuzzleApplet.java
b/PuzzleApplet.java
index
23eda81
..
f401ecf
100644
(file)
--- a/
PuzzleApplet.java
+++ b/
PuzzleApplet.java
@@
-382,8
+382,6
@@
public class PuzzleApplet extends JApplet implements Runtime.CallJavaCB {
int asc = fm.getAscent(), desc = fm.getDescent();
if ((xarg3 & ALIGN_VCENTRE) != 0)
xarg2 += asc - (asc+desc)/2;
int asc = fm.getAscent(), desc = fm.getDescent();
if ((xarg3 & ALIGN_VCENTRE) != 0)
xarg2 += asc - (asc+desc)/2;
- else
- xarg2 += asc;
int wid = fm.stringWidth(text);
if ((xarg3 & ALIGN_HCENTRE) != 0)
xarg1 -= wid / 2;
int wid = fm.stringWidth(text);
if ((xarg3 & ALIGN_HCENTRE) != 0)
xarg1 -= wid / 2;