diff --git a/src/widget/progressbar.c b/src/widget/progressbar.c index ec80a3e..5cb6f15 100644 --- a/src/widget/progressbar.c +++ b/src/widget/progressbar.c @@ -23,10 +23,10 @@ static void draw(MwWidget handle) { r.width = MwGetInteger(handle, MwNwidth); r.height = MwGetInteger(handle, MwNheight); - MwDrawFrame(handle, &r, base, 1); - MwDrawRect(handle, &r, base); w = MwGetInteger(handle, MwNvalue) - MwGetInteger(handle, MwNminValue); w = w / (MwGetInteger(handle, MwNmaxValue) - MwGetInteger(handle, MwNminValue)); + + MwDrawWidgetBack(handle, &r, base, 1, MwTRUE); if(bgpx != NULL) MwLLDrawPixmap(handle->lowlevel, &r, bgpx); r.x += MwDefaultBorderWidth(handle);