summaryrefslogtreecommitdiff
path: root/menuitem.c
diff options
context:
space:
mode:
authorlouis <louis.braun@gmx.de>2013-11-03 13:20:51 +0100
committerlouis <louis.braun@gmx.de>2013-11-03 13:20:51 +0100
commitfa1a833f2d4597372eb82cad8f9c187990249a35 (patch)
tree33da204accf12fe815644dfd4c6485ed0f68bc3b /menuitem.c
parente6176e648e3baf2685f4b27afa5abd0ac91b4971 (diff)
downloadskin-nopacity-fa1a833f2d4597372eb82cad8f9c187990249a35.tar.gz
skin-nopacity-fa1a833f2d4597372eb82cad8f9c187990249a35.tar.bz2
improved display of text progress bar in wide menus
Diffstat (limited to 'menuitem.c')
-rw-r--r--menuitem.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/menuitem.c b/menuitem.c
index e271fd8..078056c 100644
--- a/menuitem.c
+++ b/menuitem.c
@@ -1476,10 +1476,10 @@ void cNopacityDefaultMenuItem::DrawProgressBar(int x, int width, const char *bar
}
}
if (isProgressbar) {
- pixmapBackground->DrawRectangle(cRect(x+5, height/4, width-10, height/2), color);
- pixmapBackground->DrawRectangle(cRect(x+7, height/4+2, width-14, height/2-4), Theme.Color(clrMenuItemBlend));
+ pixmapStatic->DrawRectangle(cRect(x+5, height/4, width-10, height/2), color);
+ pixmapStatic->DrawRectangle(cRect(x+7, height/4+2, width-14, height/2-4), clrTransparent);
double progress = (double)now/(double)total;
- pixmapBackground->DrawRectangle(cRect(x+8, height/4+3, (width-16)*progress, height/2-6), color);
+ pixmapStatic->DrawRectangle(cRect(x+8, height/4+3, (width-16)*progress, height/2-6), color);
}
}