mirror of
https://github.com/VDR4Arch/vdr.git
synced 2023-10-10 13:36:52 +02:00
Fixed calculating menu colum widths in case the font has a size other than the default size
This commit is contained in:
parent
abd5a81c89
commit
82ed7c1723
@ -1227,6 +1227,8 @@ Reinhard Nissl <rnissl@gmx.de>
|
|||||||
to 'double'
|
to 'double'
|
||||||
for suggesting to use different names for the Aspect parameter in GetVideoSize()
|
for suggesting to use different names for the Aspect parameter in GetVideoSize()
|
||||||
and GetOsdSize()
|
and GetOsdSize()
|
||||||
|
for reporting a problem with calculating menu colum widths in case the font has a
|
||||||
|
size other than the default size
|
||||||
|
|
||||||
Richard Robson <richard_robson@beeb.net>
|
Richard Robson <richard_robson@beeb.net>
|
||||||
for reporting freezing replay if a timer starts while in Transfer Mode from the
|
for reporting freezing replay if a timer starts while in Transfer Mode from the
|
||||||
|
2
HISTORY
2
HISTORY
@ -6129,3 +6129,5 @@ Video Disk Recorder Revision History
|
|||||||
(thanks to Ville Skyttä and Ludwig Nussel).
|
(thanks to Ville Skyttä and Ludwig Nussel).
|
||||||
- Modified cSVDRP::CmdGRAB() to avoid writing into const data (reported by
|
- Modified cSVDRP::CmdGRAB() to avoid writing into const data (reported by
|
||||||
Ludwig Nussel).
|
Ludwig Nussel).
|
||||||
|
- Fixed calculating menu colum widths in case the font has a size other than the
|
||||||
|
default size (reported by Reinhard Nissl).
|
||||||
|
5
skins.c
5
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 1.14 2008/02/17 11:31:09 kls Exp $
|
* $Id: skins.c 2.1 2009/06/06 15:12:31 kls Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "skins.h"
|
#include "skins.h"
|
||||||
@ -78,8 +78,9 @@ 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
|
||||||
for (int i = 1; i < MaxTabs; i++)
|
for (int i = 1; i < MaxTabs; i++)
|
||||||
tabs[i] *= 12;//XXX average character width of font used for items - see also skincurses.c!!!
|
tabs[i] *= AvgCharWidth;
|
||||||
}
|
}
|
||||||
|
|
||||||
void cSkinDisplayMenu::Scroll(bool Up, bool Page)
|
void cSkinDisplayMenu::Scroll(bool Up, bool Page)
|
||||||
|
Loading…
Reference in New Issue
Block a user