diff options
author | Joel Bodenmann <joel@unormal.org> | 2014-05-10 11:49:11 +0200 |
---|---|---|
committer | Joel Bodenmann <joel@unormal.org> | 2014-05-10 11:49:11 +0200 |
commit | 0a83c21aa20f035911f4247c7c9eff2fa3cb9741 (patch) | |
tree | 331c20c3735f9cab8cd582c8dca1c96653fd7c73 /src | |
parent | 5544202a26da6ec74c51eb1bac9499d434b133ba (diff) | |
download | uGFX-0a83c21aa20f035911f4247c7c9eff2fa3cb9741.tar.gz uGFX-0a83c21aa20f035911f4247c7c9eff2fa3cb9741.tar.bz2 uGFX-0a83c21aa20f035911f4247c7c9eff2fa3cb9741.zip |
frame rendering bug fix
Diffstat (limited to 'src')
-rw-r--r-- | src/gwin/frame.c | 2 |
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); |