diff options
| author | xHire <xHire@0ee4d065-81f0-4d1e-b06c-ff20ad07cc3e> | 2008-04-07 19:34:00 +0000 |
|---|---|---|
| committer | xHire <xHire@0ee4d065-81f0-4d1e-b06c-ff20ad07cc3e> | 2008-04-07 19:34:00 +0000 |
| commit | c8223ce77a4dbf57be272d10c4e1d31f69bd516e (patch) | |
| tree | 205d846056e2acdd15b099a39924d51c0d3988ae /src/widget_button.c | |
| parent | 35185452d7546ab56aa0040d7c2d68795c3f813f (diff) | |
- 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
Diffstat (limited to 'src/widget_button.c')
| -rw-r--r-- | src/widget_button.c | 3 |
1 files changed, 2 insertions, 1 deletions
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) |