[Fix] Border issue in custom widgets.
This commit is contained in:
parent
c6ffaaed20
commit
44c6addeb8
@ -828,10 +828,10 @@ static void toolkit_renderCust(Widget* cst, double bx, double by) {
|
|||||||
|
|
||||||
if(cst->dat.cst.border) {
|
if(cst->dat.cst.border) {
|
||||||
// Inner outline.
|
// 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);
|
toolkit_colLight, toolkit_col);
|
||||||
// Outter outline.
|
// 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);
|
toolkit_colDark, NULL);
|
||||||
}
|
}
|
||||||
(*cst->dat.cst.render) (x, y, cst->w, cst->h);
|
(*cst->dat.cst.render) (x, y, cst->w, cst->h);
|
||||||
|
Loading…
Reference in New Issue
Block a user