Mailing List archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[vdr] Re: tiny bug in volume bar (fix)



Harf Zatschler wrote:

3) press Vol+, volume bar shows:
VOL GBBBBBBBBBBB
which it shouldn't (B=blank/transparent)
Try the patch attached. It works for me with vdr-1.2.5pre2 + dxr3-0.2.1

	Jon

--- menu.c~	2003-09-14 12:42:02.000000000 +0100
+++ menu.c	2003-09-14 12:49:11.707073096 +0100
@@ -2868,7 +2868,7 @@
 :cBitmap(Width, Height, 2)
 {
   int l = Prompt ? cBitmap::Width(Prompt) : 0;
-  int p = (Width - l) * Current / Total;
+  int p = (Width - l - 1) * Current / Total;
   Text(0, 0, Prompt, clrGreen);
   Fill(l, 0, p, Height - 1, clrGreen);
   Fill(l + p, 0, Width - 1, Height - 1, clrWhite);

Home | Main Index | Thread Index