[Fix] Negative xpos value for text widgets was off a little.
This commit is contained in:
parent
fe170aede4
commit
0784ab1624
@ -168,7 +168,7 @@ void window_addText(const unsigned int wid, const int x, const int y,
|
|||||||
wgt->h = (double) h;
|
wgt->h = (double) h;
|
||||||
if(font == NULL) wgt->dat.txt.font = &gl_defFont;
|
if(font == NULL) wgt->dat.txt.font = &gl_defFont;
|
||||||
else wgt->dat.txt.font = font;
|
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;
|
else wgt->x = (double)x;
|
||||||
if(y < 0) wgt->y = wdw->h + y - h;
|
if(y < 0) wgt->y = wdw->h + y - h;
|
||||||
else wgt->y = (double) y;
|
else wgt->y = (double) y;
|
||||||
|
Loading…
Reference in New Issue
Block a user