[Fix] Border issue in custom widgets.

This commit is contained in:
Allanis 2013-03-09 22:10:15 +00:00
parent c6ffaaed20
commit 44c6addeb8

View File

@ -828,10 +828,10 @@ static void toolkit_renderCust(Widget* cst, double bx, double by) {
if(cst->dat.cst.border) {
// Inner outline.
toolkit_drawOutline(x, y, cst->w, cst->h, 0.,
toolkit_drawOutline(x-1, y+1, cst->w+1, cst->h+1, 0.,
toolkit_colLight, toolkit_col);
// Outter outline.
toolkit_drawOutline(x, y, cst->w, cst->h, 2.,
toolkit_drawOutline(x-1, y, cst->w+1, cst->h+1, 1.,
toolkit_colDark, NULL);
}
(*cst->dat.cst.render) (x, y, cst->w, cst->h);