Small patch to prefermenu and ideas for next generation prefermenu.

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

 



Hi,

firstly i attach a small patch to fix drawing of the new yellow
and blue "buttons" of prefermenu plugin.

Thinking to a better prefermenu i would like to ask something to someone
more inside the vdr code: Can i use something like the small menu for
Audio track selection to show preferred channels? Doing so i can have a
channel menu not too big and looking consistent with the current skin.

Does this sound reasonable to you?

And more important: Did you understand me? really :)

Thanks for your effort,
   ANgelus.
-------------- next part --------------
diff -pruN prefermenu-0.6.4_orig/preferosd.c prefermenu-0.6.4/preferosd.c
--- prefermenu-0.6.4_orig/preferosd.c	2005-02-14 19:55:40.000000000 +0100
+++ prefermenu-0.6.4/preferosd.c	2005-02-14 20:13:21.000000000 +0100
@@ -383,13 +383,13 @@ osd->DrawText(5, middle-int(LINEHEIGHT/2
   // Help Colors
 #if VDRVERSNUM >= 10307
   osd->DrawRectangle(config.width+BORDERSIZE, BORDERSIZE,\
-      config.width+LINEHEIGHT-BORDERSIZE, LINEHEIGHT+(2*BORDERSIZE), clrRed);
+      config.width+LINEHEIGHT-BORDERSIZE, LINEHEIGHT+BORDERSIZE, clrRed);
   osd->DrawRectangle(config.width+BORDERSIZE, LINEHEIGHT+(2*BORDERSIZE),\
-      config.width+LINEHEIGHT-BORDERSIZE, (2*LINEHEIGHT)+(3*BORDERSIZE), clrGreen);
-  osd->DrawRectangle(config.width+BORDERSIZE, (2*LINEHEIGHT)+(2*BORDERSIZE),\
-      config.width+LINEHEIGHT-BORDERSIZE, (3*LINEHEIGHT)+(4*BORDERSIZE), clrYellow);
-  osd->DrawRectangle(config.width+BORDERSIZE, (3*LINEHEIGHT)+(2*BORDERSIZE),\
-      config.width+LINEHEIGHT-BORDERSIZE, (4*LINEHEIGHT)+(5*BORDERSIZE), clrBlue);
+      config.width+LINEHEIGHT-BORDERSIZE, (2*LINEHEIGHT)+(2*BORDERSIZE), clrGreen);
+  osd->DrawRectangle(config.width+BORDERSIZE, (2*LINEHEIGHT)+(3*BORDERSIZE),\
+      config.width+LINEHEIGHT-BORDERSIZE, (3*LINEHEIGHT)+(3*BORDERSIZE), clrYellow);
+  osd->DrawRectangle(config.width+BORDERSIZE, (3*LINEHEIGHT)+(4*BORDERSIZE),\
+      config.width+LINEHEIGHT-BORDERSIZE, (4*LINEHEIGHT)+(4*BORDERSIZE), clrBlue);
 #else
   bitmap->Fill(config.width+BORDERSIZE, BORDERSIZE,\
       config.width+LINEHEIGHT-BORDERSIZE, LINEHEIGHT+(2*BORDERSIZE), clrRed);

[Index of Archives]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Util Linux NG]     [Xfree86]     [Big List of Linux Books]     [Fedora Users]     [Fedora Women]     [ALSA Devel]     [Linux USB]

  Powered by Linux