summaryrefslogtreecommitdiff
path: root/patchfont.c
diff options
context:
space:
mode:
authorMartin Prochnow <nordlicht@martins-kabuff.de>2006-06-12 10:10:21 +0200
committerAndreas Mair <andreas@vdr-developer.org>2006-06-12 10:10:21 +0200
commit75cebc37f280719c40824a6f76b43018f6c71d16 (patch)
treecf895fdf24e8c3b2c3315edb5c7306f4e7c01f1b /patchfont.c
parent40d2369b12da350f684f5364a00c3501a6c038e6 (diff)
downloadvdr-plugin-extrecmenu-75cebc37f280719c40824a6f76b43018f6c71d16.tar.gz
vdr-plugin-extrecmenu-75cebc37f280719c40824a6f76b43018f6c71d16.tar.bz2
Version 0.12v0.12
- reworked layout - added possibility to set sorting mode for each directory - if you use the PIN-plugin, ExtRecMenu works together with it to protect recordings - fixed a very annoying bug which prevent renaming and moving recordings which have special chars in their names if VDR is compiled with VFAT=1 or startet with the option --vfat
Diffstat (limited to 'patchfont.c')
-rw-r--r--patchfont.c70
1 files changed, 62 insertions, 8 deletions
diff --git a/patchfont.c b/patchfont.c
index 0a4c7db..d85bcd2 100644
--- a/patchfont.c
+++ b/patchfont.c
@@ -35,7 +35,6 @@ void PatchFont(eDvbFont DvbFont)
{
font_data[i*num_rows+ 0]=22;
font_data[i*num_rows+ 1]=27;
- font_data[i*num_rows+ 5]=0x000000; // .. .... .... .... .... ....
font_data[i*num_rows+ 6]=0x000f00; // .. .... .... #### .... ....
font_data[i*num_rows+ 7]=0x007fe0; // .. .... .### #### ###. ....
font_data[i*num_rows+ 8]=0x00fff0; // .. .... #### #### #### ....
@@ -56,13 +55,11 @@ void PatchFont(eDvbFont DvbFont)
font_data[i*num_rows+23]=0x000ff0; // .. .... .... #### #### ....
font_data[i*num_rows+24]=0x001fe0; // .. .... ...# #### ###. ....
font_data[i*num_rows+25]=0x000f00; // .. .... .... #### .... ....
- font_data[i*num_rows+26]=0x000000; // .. .... .... .... .... ....
}
else
{
font_data[i*num_rows+ 0]=22;
font_data[i*num_rows+ 1]=22;
- font_data[i*num_rows+ 2]=0x000000; // .. .... .... .... .... ....
font_data[i*num_rows+ 3]=0x000f00; // .. .... .... #### .... ....
font_data[i*num_rows+ 4]=0x007fe0; // .. .... .### #### ###. ....
font_data[i*num_rows+ 5]=0x00fff0; // .. .... #### #### #### ....
@@ -83,7 +80,6 @@ void PatchFont(eDvbFont DvbFont)
font_data[i*num_rows+20]=0x000ff0; // .. .... .... #### #### ....
font_data[i*num_rows+21]=0x001fe0; // .. .... ...# #### ###. ....
font_data[i*num_rows+22]=0x000f00; // .. .... .... #### .... ....
- font_data[i*num_rows+23]=0x000000; // .. .... .... .... .... ....
}
}
// dvd marker
@@ -93,7 +89,6 @@ void PatchFont(eDvbFont DvbFont)
{
font_data[i*num_rows+ 0]=22;
font_data[i*num_rows+ 1]=27;
- font_data[i*num_rows+ 5]=0x0; // .. .... .... .... .... ....
font_data[i*num_rows+ 6]=0x003f00; // .. .... ..## #### .... ....
font_data[i*num_rows+ 7]=0x01ffe0; // .. ...# #### #### ###. ....
font_data[i*num_rows+ 8]=0x03ff90; // .. ..## #### #### #..# ....
@@ -114,13 +109,11 @@ void PatchFont(eDvbFont DvbFont)
font_data[i*num_rows+23]=0x027ff0; // .. ..#. .### #### #### ....
font_data[i*num_rows+24]=0x01ffe0; // .. ...# #### #### ###. ....
font_data[i*num_rows+25]=0x003f00; // .. .... ..## #### .... ....
- font_data[i*num_rows+26]=0x000000; // .. .... .... .... .... ....
}
else
{
font_data[i*num_rows+ 0]=22;
font_data[i*num_rows+ 1]=22;
- font_data[i*num_rows+ 2]=0x0; // .. .... .... .... .... ....
font_data[i*num_rows+ 3]=0x003f00; // .. .... ..## #### .... ....
font_data[i*num_rows+ 4]=0x01ffe0; // .. ...# #### #### ###. ....
font_data[i*num_rows+ 5]=0x03ff90; // .. ..## #### #### #..# ....
@@ -141,7 +134,68 @@ void PatchFont(eDvbFont DvbFont)
font_data[i*num_rows+20]=0x027ff0; // .. ..#. .### #### #### ....
font_data[i*num_rows+21]=0x01ffe0; // .. ...# #### #### ###. ....
font_data[i*num_rows+22]=0x003f00; // .. .... ..## #### .... ....
- font_data[i*num_rows+23]=0x000000; // .. .... .... .... .... ....
+ }
+ }
+ // folder
+ else if(num_char==130)
+ {
+ if(DvbFont==fontOsd)
+ {
+ font_data[i*num_rows+ 0]=22;
+ font_data[i*num_rows+ 1]=27;
+ font_data[i*num_rows+ 8]=0x1fe000; // .# #### ###. .... .... ....
+ font_data[i*num_rows+ 9]=0x1ff000; // .# #### #### .... .... ....
+ font_data[i*num_rows+10]=0x181800; // .# #... ...# #... .... ....
+ font_data[i*num_rows+11]=0x1ffffe; // .# #### #### #### #### ###.
+ font_data[i*num_rows+12]=0x1ffffe; // .# #### #### #### #### ###.
+ font_data[i*num_rows+13]=0x180006; // .# #... .... .... .... .##.
+ font_data[i*num_rows+14]=0x180006; // .# #... .... .... .... .##.
+ font_data[i*num_rows+15]=0x180006; // .# #... .... .... .... .##.
+ font_data[i*num_rows+16]=0x180006; // .# #... .... .... .... .##.
+ font_data[i*num_rows+17]=0x180006; // .# #... .... .... .... .##.
+ font_data[i*num_rows+18]=0x180006; // .# #... .... .... .... .##.
+ font_data[i*num_rows+19]=0x180006; // .# #... .... .... .... .##.
+ font_data[i*num_rows+20]=0x180006; // .# #... .... .... .... .##.
+ font_data[i*num_rows+21]=0x180006; // .# #... .... .... .... .##.
+ font_data[i*num_rows+22]=0x180006; // .# #... .... .... .... .##.
+ font_data[i*num_rows+23]=0x1ffffe; // .# #### #### #### #### ###.
+ font_data[i*num_rows+24]=0x1ffffe; // .# #### #### #### #### ###.
+ }
+ else
+ {
+ font_data[i*num_rows+ 0]=22;
+ font_data[i*num_rows+ 1]=22;
+ font_data[i*num_rows+ 5]=0x1fe000; // .# #### ###. .... .... ....
+ font_data[i*num_rows+ 6]=0x1ff000; // .# #### #### .... .... ....
+ font_data[i*num_rows+ 7]=0x181800; // .# #... ...# #... .... ....
+ font_data[i*num_rows+ 8]=0x1ffffe; // .# #### #### #### #### ###.
+ font_data[i*num_rows+ 9]=0x1ffffe; // .# #### #### #### #### ###.
+ font_data[i*num_rows+10]=0x180006; // .# #... .... .... .... .##.
+ font_data[i*num_rows+11]=0x180006; // .# #... .... .... .... .##.
+ font_data[i*num_rows+12]=0x180006; // .# #... .... .... .... .##.
+ font_data[i*num_rows+13]=0x180006; // .# #... .... .... .... .##.
+ font_data[i*num_rows+14]=0x180006; // .# #... .... .... .... .##.
+ font_data[i*num_rows+15]=0x180006; // .# #... .... .... .... .##.
+ font_data[i*num_rows+16]=0x180006; // .# #... .... .... .... .##.
+ font_data[i*num_rows+17]=0x180006; // .# #... .... .... .... .##.
+ font_data[i*num_rows+18]=0x180006; // .# #... .... .... .... .##.
+ font_data[i*num_rows+19]=0x180006; // .# #... .... .... .... .##.
+ font_data[i*num_rows+20]=0x1ffffe; // .# #### #### #### #### ###.
+ font_data[i*num_rows+21]=0x1ffffe; // .# #### #### #### #### ###.
+ }
+ }
+ // blank space with the same width as the numbers
+ else if(num_char==131)
+ {
+ if(DvbFont==fontOsd)
+ {
+ font_data[i*num_rows+ 0]=13;
+ font_data[i*num_rows+ 1]=27;
+ }
+ else
+ {
+ font_data[i*num_rows+ 0]=10;
+ font_data[i*num_rows+ 1]=22;
}
}
else