use text 'dy' theme option

This commit is contained in:
Hannes Janetzek 2013-06-17 02:12:55 +02:00
parent 2d8098112b
commit c6be250fde
2 changed files with 3 additions and 3 deletions

View File

@ -162,8 +162,8 @@ public final class TextLayer extends TextureLayer {
//if (it.origin == 0) {
x1 = x3 = (short) (COORD_SCALE * -hw);
x2 = x4 = (short) (COORD_SCALE * hw);
y1 = y2 = (short) (COORD_SCALE * hh);
y3 = y4 = (short) (COORD_SCALE * -hh);
y1 = y2 = (short) (COORD_SCALE * (it.text.dy + hh));
y3 = y4 = (short) (COORD_SCALE * (it.text.dy - hh));
//} else {
// x1 = x3 = (short) (SCALE * 0);
// x2 = x4 = (short) (SCALE * width);

View File

@ -167,7 +167,7 @@ public final class Text extends RenderInstruction {
this.style = style;
this.textKey = textKey;
this.caption = caption;
this.dy = dy;
this.dy = -dy;
this.priority = priority;
//paint = Graphics.res.getPaint();