mirror of
https://github.com/VDR4Arch/vdr.git
synced 2023-10-10 13:36:52 +02:00
Increased the average character estimate for calculating tab positions in skins, to better suit wide fonts
This commit is contained in:
parent
73314207dc
commit
343ca17b17
@ -531,6 +531,7 @@ Onno Kreuzinger <ok@solutas.net>
|
|||||||
|
|
||||||
Rudi Hofer (Rudi.Hofer@gmx.de)
|
Rudi Hofer (Rudi.Hofer@gmx.de)
|
||||||
for his help in keeping 'channels.conf' up to date
|
for his help in keeping 'channels.conf' up to date
|
||||||
|
for reporting a problem with overlapping tab positions in skins when using wide fonts
|
||||||
|
|
||||||
Gregoire Favre <greg@ulima.unil.ch>
|
Gregoire Favre <greg@ulima.unil.ch>
|
||||||
for fixing some function headers to make them compile with gcc 3.x
|
for fixing some function headers to make them compile with gcc 3.x
|
||||||
|
2
HISTORY
2
HISTORY
@ -6893,3 +6893,5 @@ Video Disk Recorder Revision History
|
|||||||
|
|
||||||
- The fps value for channels where it differs from the default is now set correctly
|
- The fps value for channels where it differs from the default is now set correctly
|
||||||
when pausing live video.
|
when pausing live video.
|
||||||
|
- Increased the average character estimate for calculating tab positions in skins,
|
||||||
|
to better suit wide fonts (reported by Rudi Hofer).
|
||||||
|
4
skins.c
4
skins.c
@ -4,7 +4,7 @@
|
|||||||
* See the main source file 'vdr.c' for copyright information and
|
* See the main source file 'vdr.c' for copyright information and
|
||||||
* how to reach the author.
|
* how to reach the author.
|
||||||
*
|
*
|
||||||
* $Id: skins.c 2.3 2011/08/21 11:21:19 kls Exp $
|
* $Id: skins.c 2.4 2012/02/20 11:47:15 kls Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "skins.h"
|
#include "skins.h"
|
||||||
@ -78,7 +78,7 @@ void cSkinDisplayMenu::SetTabs(int Tab1, int Tab2, int Tab3, int Tab4, int Tab5)
|
|||||||
tabs[3] = Tab3 ? tabs[2] + Tab3 : 0;
|
tabs[3] = Tab3 ? tabs[2] + Tab3 : 0;
|
||||||
tabs[4] = Tab4 ? tabs[3] + Tab4 : 0;
|
tabs[4] = Tab4 ? tabs[3] + Tab4 : 0;
|
||||||
tabs[5] = Tab5 ? tabs[4] + Tab5 : 0;
|
tabs[5] = Tab5 ? tabs[4] + Tab5 : 0;
|
||||||
int AvgCharWidth = Setup.FontOsdSize * 3 / 5; // just an estimate
|
int AvgCharWidth = Setup.FontOsdSize * 4 / 6; // just an estimate
|
||||||
for (int i = 1; i < MaxTabs; i++)
|
for (int i = 1; i < MaxTabs; i++)
|
||||||
tabs[i] *= AvgCharWidth;
|
tabs[i] *= AvgCharWidth;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user