diff options
Diffstat (limited to 'src/gwin/frame.c')
-rw-r--r-- | src/gwin/frame.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/gwin/frame.c b/src/gwin/frame.c index fbef54dc..9877b95e 100644 --- a/src/gwin/frame.c +++ b/src/gwin/frame.c @@ -190,7 +190,7 @@ static void _callbackBtn(void *param, GEvent *pe) { /////////////////////////////////////////////////////////////////////////////////////////////////// static const GColorSet* _getDrawColors(GWidgetObject *gw) { - if (!(gw->g.flags & GWIN_FLG_ENABLED)) + if (!(gw->g.flags & GWIN_FLG_SYSENABLED)) return &gw->pstyle->disabled; //if ((gw->g.flags & GBUTTON_FLG_PRESSED)) // return &gw->pstyle->pressed; @@ -213,10 +213,6 @@ void gwinFrameDraw_Std(GWidgetObject *gw, void *param) { border = HTML2COLOR(0x2698DE); background = HTML2COLOR(0xEEEEEE); - #if GDISP_NEED_CLIP - gdispGSetClip(gw->g.display, gw->g.x, gw->g.y, gw->g.width, gw->g.height); - #endif - // 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); |