From 0784ab1624a3dc06658005317e3497b9803b260d Mon Sep 17 00:00:00 2001 From: Allanis Date: Sat, 9 Mar 2013 22:23:40 +0000 Subject: [PATCH] [Fix] Negative xpos value for text widgets was off a little. --- src/toolkit.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/toolkit.c b/src/toolkit.c index 70aa526..16e029c 100644 --- a/src/toolkit.c +++ b/src/toolkit.c @@ -168,7 +168,7 @@ void window_addText(const unsigned int wid, const int x, const int y, wgt->h = (double) h; if(font == NULL) wgt->dat.txt.font = &gl_defFont; else wgt->dat.txt.font = font; - if(x < 0) wgt->x = wdw->w - wgt->w + x - w; + if(x < 0) wgt->x = wdw->w - wgt->w + x; else wgt->x = (double)x; if(y < 0) wgt->y = wdw->h + y - h; else wgt->y = (double) y;