From c8223ce77a4dbf57be272d10c4e1d31f69bd516e Mon Sep 17 00:00:00 2001 From: xHire Date: Mon, 7 Apr 2008 19:34:00 +0000 Subject: - partially fixed bug #0004 - *only* issue with text in buttons and textfields - implemented build dir for normal game (=> not only server has build dir now) - the directory structure was extended with directories for packaging scripts git-svn-id: http://opensvn.csie.org/tuxanci_ng@44 0ee4d065-81f0-4d1e-b06c-ff20ad07cc3e --- src/widget_button.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/widget_button.c') diff --git a/src/widget_button.c b/src/widget_button.c index cb9092b..2638619 100644 --- a/src/widget_button.c +++ b/src/widget_button.c @@ -49,7 +49,8 @@ void drawWidgetButton(widget_button_t *p) drawImage(g_button0, p->x, p->y, 0, 0, g_button0->w, g_button0->h); } - drawFont(p->text, p->x+WIDGET_BUTTON_WIDTH/2-p->w/2, p->y+p->h/2, COLOR_WHITE); + //drawFont(p->text, p->x+WIDGET_BUTTON_WIDTH/2-p->w/2, p->y+p->h/2, COLOR_WHITE); + drawFont(p->text, p->x + WIDGET_BUTTON_WIDTH/2 - p->w/2, p->y + WIDGET_BUTTON_HEIGHT/2 - p->h/2, COLOR_WHITE); } void eventWidgetButton(widget_button_t *p) -- cgit v1.2.3