aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoel Bodenmann <joel@unormal.org>2014-05-10 11:49:11 +0200
committerJoel Bodenmann <joel@unormal.org>2014-05-10 11:49:11 +0200
commit0a83c21aa20f035911f4247c7c9eff2fa3cb9741 (patch)
tree331c20c3735f9cab8cd582c8dca1c96653fd7c73
parent5544202a26da6ec74c51eb1bac9499d434b133ba (diff)
downloaduGFX-0a83c21aa20f035911f4247c7c9eff2fa3cb9741.tar.gz
uGFX-0a83c21aa20f035911f4247c7c9eff2fa3cb9741.tar.bz2
uGFX-0a83c21aa20f035911f4247c7c9eff2fa3cb9741.zip
frame rendering bug fix
-rw-r--r--src/gwin/frame.c2
1 files changed, 1 insertions, 1 deletions
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);