From 8b5356b66c92782f2182baae1bcedfa88c8dc21e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Rydg=C3=A5rd?= Date: Tue, 30 Oct 2012 00:11:30 +0100 Subject: [PATCH] Alignment bugfix --- ui/ui.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/ui.cpp b/ui/ui.cpp index aabebbab0a..73dac4eed1 100644 --- a/ui/ui.cpp +++ b/ui/ui.cpp @@ -103,7 +103,7 @@ int UIButton(int id, const LayoutManager &layout, float w, const char *text, int if (button_align & ALIGN_HCENTER) x -= w / 2; if (button_align & ALIGN_VCENTER) y -= h / 2; if (button_align & ALIGN_RIGHT) x -= w; - if (button_align & ALIGN_BOTTOMRIGHT) y -= h; + if (button_align & ALIGN_BOTTOM) y -= h; int txOffset = 0;