commit f9f05e62
Fix right aligning text fields
Changed files
| M | source/code/sago/SagoTextField.cpp before |
diff --git a/source/code/sago/SagoTextField.cpp b/source/code/sago/SagoTextField.cpp
index 2bb40f9..666de12 100644
--- a/source/code/sago/SagoTextField.cpp
+++ b/source/code/sago/SagoTextField.cpp
@@ -209,7 +209,7 @@ void SagoTextField::Draw(SDL_Renderer* target, int x, int y, Alignment alignment
x -= texW/2;
}
if (alignment == Alignment::right) {
- y -= texW;
+ x -= texW;
}
if (verticalAlignment == VerticalAlignment::center) {
y -= texH/2;