Fix enabled visibility bug
This commit is contained in:
parent
7f92794b11
commit
c5ec720277
1 changed files with 2 additions and 2 deletions
|
@ -210,7 +210,7 @@ void gwinSetEnabled(GHandle gh, bool_t enabled) {
|
||||||
if (enabled) {
|
if (enabled) {
|
||||||
if (!(gh->flags & GWIN_FLG_ENABLED)) {
|
if (!(gh->flags & GWIN_FLG_ENABLED)) {
|
||||||
gh->flags |= GWIN_FLG_ENABLED;
|
gh->flags |= GWIN_FLG_ENABLED;
|
||||||
if (gh->vmt->Redraw) {
|
if ((gh->flags & GWIN_FLG_VISIBLE) && gh->vmt->Redraw) {
|
||||||
#if GDISP_NEED_CLIP
|
#if GDISP_NEED_CLIP
|
||||||
gdispSetClip(gh->x, gh->y, gh->width, gh->height);
|
gdispSetClip(gh->x, gh->y, gh->width, gh->height);
|
||||||
#endif
|
#endif
|
||||||
|
@ -220,7 +220,7 @@ void gwinSetEnabled(GHandle gh, bool_t enabled) {
|
||||||
} else {
|
} else {
|
||||||
if ((gh->flags & GWIN_FLG_ENABLED)) {
|
if ((gh->flags & GWIN_FLG_ENABLED)) {
|
||||||
gh->flags &= ~GWIN_FLG_ENABLED;
|
gh->flags &= ~GWIN_FLG_ENABLED;
|
||||||
if (gh->vmt->Redraw) {
|
if ((gh->flags & GWIN_FLG_VISIBLE) && gh->vmt->Redraw) {
|
||||||
#if GDISP_NEED_CLIP
|
#if GDISP_NEED_CLIP
|
||||||
gdispSetClip(gh->x, gh->y, gh->width, gh->height);
|
gdispSetClip(gh->x, gh->y, gh->width, gh->height);
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Add table
Reference in a new issue