This commit is contained in:
meehl committed 2026-08-28 20:12:42 +02:00
1 parent 6f0d678790
commit 77e1d615e0
2 files changed
+4 -4

No files matched your search

+2 -2
View File
@@ -327,12 +327,12 @@ unsafe extern "C-unwind" fn draw_string(state: *mut ffi::lua_State) -> c_int {
let halign = match alignment {
PoBTextAlignment::Left => Alignment::Min,
PoBTextAlignment::Center => {
position.x += screen_size.width as f32 / 2.0;
position.x += screen_size.width / 2.0;
is_absolute_position = true;
Alignment::Center
}
PoBTextAlignment::Right => {
position.x = screen_size.width as f32 - position.x;
position.x = screen_size.width - position.x;
is_absolute_position = true;
Alignment::Max
}