mirror of
https://github.com/wiiu-env/libgui.git
synced 2024-11-14 12:25:10 +01:00
Gix the alignment in GuiText
This commit is contained in:
parent
64e2756b92
commit
d89093de78
@ -639,6 +639,11 @@ void GuiText::draw(CVideo *pVideo) {
|
||||
float x_pos = getCenterX() * internalRenderingScale;
|
||||
float y_pos = getCenterY() * internalRenderingScale;
|
||||
|
||||
if (alignment & ALIGN_TOP) {
|
||||
y_pos -= getLineHeight() * getScale() * internalRenderingScale;
|
||||
} else if (alignment & ALIGN_BOTTOM) {
|
||||
y_pos += getLineHeight() * getScale() * internalRenderingScale;
|
||||
}
|
||||
|
||||
if (maxWidth > 0 && maxWidth <= textWidth) {
|
||||
if (wrapMode == DOTTED) { // text dotted
|
||||
|
Loading…
Reference in New Issue
Block a user