aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJoel Bodenmann <joel@unormal.org>2014-08-21 18:34:59 +0200
committerJoel Bodenmann <joel@unormal.org>2014-08-21 18:34:59 +0200
commit0fa640f1edf98970e7c2e5ca9f574160223143c5 (patch)
tree50afce8dcb9a8e92ee3d6e7487f38d359fa93f49 /src
parent7c791f2a9204f892e141d03163c9bcb36b335b41 (diff)
parent117e195354853ce2b53afef4ebb5860bf44fdde2 (diff)
downloaduGFX-0fa640f1edf98970e7c2e5ca9f574160223143c5.tar.gz
uGFX-0fa640f1edf98970e7c2e5ca9f574160223143c5.tar.bz2
uGFX-0fa640f1edf98970e7c2e5ca9f574160223143c5.zip
Merge branch 'master' of bitbucket.org:Tectu/ugfx
Diffstat (limited to 'src')
-rw-r--r--src/gwin/gwin_frame.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/gwin/gwin_frame.c b/src/gwin/gwin_frame.c
index 63df3be2..8cb74a7d 100644
--- a/src/gwin/gwin_frame.c
+++ b/src/gwin/gwin_frame.c
@@ -96,7 +96,7 @@ static void forceFrameRedraw(GWidgetObject *gw) {
gw->g.flags &= ~(GWIN_FRAME_CLOSE_PRESSED|GWIN_FRAME_MAX_PRESSED|GWIN_FRAME_MIN_PRESSED);
forceFrameRedraw(gw);
_gwinSendEvent(&gw->g, GEVENT_GWIN_CLOSE);
- gwinDestroy(&gw->g);
+ _gwinDestroy(&gw->g, REDRAW_INSESSION);
return;
}
if ((gw->g.flags & GWIN_FRAME_MAX_PRESSED)) {
@@ -128,6 +128,7 @@ static void forceFrameRedraw(GWidgetObject *gw) {
// Close is released - destroy the window. This is tricky as we already have the drawing lock.
gw->g.flags &= ~(GWIN_FRAME_CLOSE_PRESSED|GWIN_FRAME_MAX_PRESSED|GWIN_FRAME_MIN_PRESSED);
forceFrameRedraw(gw);
+ _gwinSendEvent(&gw->g, GEVENT_GWIN_CLOSE);
_gwinDestroy(&gw->g, REDRAW_INSESSION);
return;
}
@@ -308,7 +309,7 @@ void gwinFrameDraw_Std(GWidgetObject *gw, void *param) {
for(y = gw->g.y+BORDER_T, ih = gi->height; y < my; y += ih) {
if (ih > my - y)
ih = my - y;
- for(x = gw->g.x+BORDER_L; iw = gi->width; x < mx; x += iw) {
+ for(x = gw->g.x+BORDER_L, iw = gi->width; x < mx; x += iw) {
if (iw > mx - x)
iw = mx - x;
gdispGImageDraw(gw->g.display, gi, x, y, ih, iw, 0, 0);