From 44c6addeb825d64e1675a0774f1ee25785303270 Mon Sep 17 00:00:00 2001
From: Allanis <allanis@saracraft.net>
Date: Sat, 9 Mar 2013 22:10:15 +0000
Subject: [PATCH] [Fix] Border issue in custom widgets.

---
 src/toolkit.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/toolkit.c b/src/toolkit.c
index a82d616..70aa526 100644
--- a/src/toolkit.c
+++ b/src/toolkit.c
@@ -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);