FireBirdLib - Topfield TMS PVR TAP Programming Library
OSDMenuSetLineHeight.c
Go to the documentation of this file.
1
#include "
FBLib_TMSOSDMenu.h
"
2
3
void
OSDMenuSetLineHeight
(
tLineHeight
type)
4
{
5
tMenu
*pMenu;
6
7
TRACEENTER
();
8
9
pMenu = &
Menu
[
CurrentMenuLevel
];
10
11
pMenu->
FontLeftTitle
= &
OSDMenuFont_20
;
12
pMenu->
FontRightTitle
= &
OSDMenuFont_16
;
13
pMenu->
FontButtons
= &
OSDMenuFont_12
;
14
15
switch
(type)
16
{
17
case
LH_Normal
:
18
case
LH_Small
:
19
pMenu->
FontListLineNumber
= &
OSDMenuFont_14
;
20
pMenu->
FontListNameColumn
= &
OSDMenuFont_14
;
21
pMenu->
FontListValueColumn
= &
OSDMenuFont_14
;
22
pMenu->
FontMemo
= &
OSDMenuFont_14
;
23
pMenu->
NrLines
= (type ==
LH_Normal
&& pMenu->
OSDMenuDisplayMode
==
OMDM_Standard
? 10 : 15);
24
ListDirty
= TRUE;
25
break
;
26
27
case
LH_Tiny
:
28
pMenu->
FontListLineNumber
= &
OSDMenuFont_12
;
29
pMenu->
FontListNameColumn
= &
OSDMenuFont_12
;
30
pMenu->
FontListValueColumn
= &
OSDMenuFont_12
;
31
pMenu->
FontMemo
= &
OSDMenuFont_12
;
32
pMenu->
NrLines
= 18;
33
ListDirty
= TRUE;
34
break
;
35
36
default
:
37
break
;
38
}
39
40
if
(pMenu->
OSDMenuDisplayMode
==
OMDM_Standard
|| pMenu->
OSDMenuDisplayMode
==
OMDM_ListBox
)
OSDDirty
= TRUE;
41
if
(pMenu->
OSDMenuDisplayMode
==
OMDM_Memo
|| pMenu->
OSDMenuDisplayMode
==
OMDM_Text
)
OSDMemoFormatText
();
42
43
TRACEEXIT
();
44
}
FBLib_TMSOSDMenu.h
OSDMemoFormatText
void OSDMemoFormatText(void)
Definition:
OSDMemoFormatText.c:6
Menu
tMenu Menu[NRMENULEVELS]
Definition:
OSDMenuInit.c:6
OSDDirty
bool OSDDirty
Definition:
OSDMenuInit.c:5
OSDMenuFont_12
tFontDataUC OSDMenuFont_12
Definition:
OSDMenuInit.c:40
OSDMenuFont_14
tFontDataUC OSDMenuFont_14
Definition:
OSDMenuInit.c:41
OMDM_Text
@ OMDM_Text
Definition:
FBLib_TMSOSDMenu.h:63
OMDM_Standard
@ OMDM_Standard
Definition:
FBLib_TMSOSDMenu.h:60
OMDM_Memo
@ OMDM_Memo
Definition:
FBLib_TMSOSDMenu.h:62
OMDM_ListBox
@ OMDM_ListBox
Definition:
FBLib_TMSOSDMenu.h:61
CurrentMenuLevel
dword CurrentMenuLevel
Definition:
OSDMenuInit.c:7
OSDMenuFont_20
tFontDataUC OSDMenuFont_20
Definition:
OSDMenuInit.c:44
ListDirty
bool ListDirty
Definition:
FBLib_TMSOSDMenu.h:223
OSDMenuFont_16
tFontDataUC OSDMenuFont_16
Definition:
OSDMenuInit.c:42
OSDMenuSetLineHeight
void OSDMenuSetLineHeight(tLineHeight type)
Definition:
OSDMenuSetLineHeight.c:3
TRACEEXIT
#define TRACEEXIT()
Definition:
libFireBird.h:1244
TRACEENTER
#define TRACEENTER()
Definition:
libFireBird.h:1243
tLineHeight
tLineHeight
Definition:
libFireBird.h:2740
LH_Tiny
@ LH_Tiny
Definition:
libFireBird.h:2743
LH_Normal
@ LH_Normal
Definition:
libFireBird.h:2741
LH_Small
@ LH_Small
Definition:
libFireBird.h:2742
tMenu
Definition:
FBLib_TMSOSDMenu.h:67
tMenu::FontListLineNumber
tFontDataUC * FontListLineNumber
Definition:
FBLib_TMSOSDMenu.h:99
tMenu::FontRightTitle
tFontDataUC * FontRightTitle
Definition:
FBLib_TMSOSDMenu.h:98
tMenu::NrLines
int NrLines
Definition:
FBLib_TMSOSDMenu.h:70
tMenu::OSDMenuDisplayMode
tOSDMenuDisplayMode OSDMenuDisplayMode
Definition:
FBLib_TMSOSDMenu.h:96
tMenu::FontListNameColumn
tFontDataUC * FontListNameColumn
Definition:
FBLib_TMSOSDMenu.h:100
tMenu::FontLeftTitle
tFontDataUC * FontLeftTitle
Definition:
FBLib_TMSOSDMenu.h:97
tMenu::FontListValueColumn
tFontDataUC * FontListValueColumn
Definition:
FBLib_TMSOSDMenu.h:101
tMenu::FontButtons
tFontDataUC * FontButtons
Definition:
FBLib_TMSOSDMenu.h:102
tMenu::FontMemo
tFontDataUC * FontMemo
Definition:
FBLib_TMSOSDMenu.h:103
TMSOSDMenu
OSDMenuSetLineHeight.c
Generated on Fri Apr 29 2022 13:34:01 for FireBirdLib - Topfield TMS PVR TAP Programming Library by
1.9.3