use text 'dy' theme option
This commit is contained in:
parent
2d8098112b
commit
c6be250fde
@ -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);
|
||||
|
||||
@ -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();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user