From 0a83c21aa20f035911f4247c7c9eff2fa3cb9741 Mon Sep 17 00:00:00 2001 From: Joel Bodenmann Date: Sat, 10 May 2014 11:49:11 +0200 Subject: [PATCH] frame rendering bug fix --- src/gwin/frame.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gwin/frame.c b/src/gwin/frame.c index f86bd11b..ca37953a 100644 --- a/src/gwin/frame.c +++ b/src/gwin/frame.c @@ -214,7 +214,7 @@ void gwinFrameDraw_Std(GWidgetObject *gw, void *param) { // Render the actual frame (with border, if any) if (gw->g.flags & GWIN_FRAME_BORDER) { gdispGFillArea(gw->g.display, gw->g.x, gw->g.y, gw->g.width, gw->g.height, border); - gdispGFillArea(gw->g.display, gw->g.x + BORDER_X, gw->g.y + BORDER_Y, gw->g.width - 2*BORDER_X, gw->g.width - BORDER_Y - BORDER_X, background); + gdispGFillArea(gw->g.display, gw->g.x + BORDER_X, gw->g.y + BORDER_Y, gw->g.width - 2*BORDER_X, gw->g.height - BORDER_Y - BORDER_X, background); } else { // This ensure that the actual frame content (it's children) render at the same spot, no mather whether the frame has a border or not gdispGFillArea(gw->g.display, gw->g.x + BORDER_X, gw->g.y + BORDER_Y, gw->g.width, gw->g.height, background);