gwinDestroy() does now redraw the parent if any
This commit is contained in:
parent
1778a7f3b1
commit
fc984c3721
1 changed files with 9 additions and 6 deletions
|
@ -193,7 +193,12 @@ void gwinDestroy(GHandle gh) {
|
||||||
gwinDestroy(tmp);
|
gwinDestroy(tmp);
|
||||||
|
|
||||||
// remove myself from the hierarchy
|
// remove myself from the hierarchy
|
||||||
gwinRemoveChild(gh);
|
gwinRemoveChild(gh);
|
||||||
|
|
||||||
|
// issue a redraw of my parent if any
|
||||||
|
if (gh->parent) {
|
||||||
|
gwinRedraw(gh->parent);
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// Make the window invisible
|
// Make the window invisible
|
||||||
|
@ -289,10 +294,8 @@ void gwinRedraw(GHandle gh) {
|
||||||
|
|
||||||
#if GWIN_NEED_HIERARCHY
|
#if GWIN_NEED_HIERARCHY
|
||||||
GHandle tmp;
|
GHandle tmp;
|
||||||
if (gh->child) {
|
for (tmp = gh->child; tmp; tmp = tmp->sibling)
|
||||||
for (tmp = gh->child; tmp; tmp = tmp->sibling)
|
gwinRedraw(tmp);
|
||||||
gwinRedraw(tmp);
|
|
||||||
}
|
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -372,7 +375,7 @@ void gwinRedraw(GHandle gh) {
|
||||||
void gwinClear(GHandle gh) {
|
void gwinClear(GHandle gh) {
|
||||||
/*
|
/*
|
||||||
* Don't render anything when the window is not visible but
|
* Don't render anything when the window is not visible but
|
||||||
* still call return gh->child->sibling;the AfterClear() routine as some widgets will
|
* still call tthe AfterClear() routine as some widgets will
|
||||||
* need this to clear internal buffers or similar
|
* need this to clear internal buffers or similar
|
||||||
*/
|
*/
|
||||||
if (!((gh->flags & GWIN_FLG_VISIBLE))) {
|
if (!((gh->flags & GWIN_FLG_VISIBLE))) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue