FireBirdLib - Topfield TMS PVR TAP Programming Library
OSDMenuGetStringHeight.c
Go to the documentation of this file.
1
#include "
FBLib_TMSOSDMenu.h
"
2
3
dword
OSDMenuGetStringHeight
(
const
char
*str,
byte
fntSize)
4
{
5
dword ret = 0;
6
7
TRACEENTER
();
8
9
switch
(fntSize)
10
{
11
case
10: ret =
FMUC_GetStringHeight
(str, &
OSDMenuFont_10
);
break
;
12
case
12: ret =
FMUC_GetStringHeight
(str, &
OSDMenuFont_12
);
break
;
13
case
14: ret =
FMUC_GetStringHeight
(str, &
OSDMenuFont_14
);
break
;
14
case
16: ret =
FMUC_GetStringHeight
(str, &
OSDMenuFont_16
);
break
;
15
case
18: ret =
FMUC_GetStringHeight
(str, &
OSDMenuFont_18
);
break
;
16
case
20: ret =
FMUC_GetStringHeight
(str, &
OSDMenuFont_20
);
break
;
17
case
20+0xB: ret =
FMUC_GetStringHeight
(str, &
OSDMenuFont_20B
);
break
;
18
}
19
20
TRACEEXIT
();
21
22
return
ret;
23
}
FBLib_TMSOSDMenu.h
OSDMenuFont_18
tFontDataUC OSDMenuFont_18
Definition:
OSDMenuInit.c:43
OSDMenuFont_10
tFontDataUC OSDMenuFont_10
Definition:
OSDMenuInit.c:39
OSDMenuFont_12
tFontDataUC OSDMenuFont_12
Definition:
OSDMenuInit.c:40
OSDMenuFont_14
tFontDataUC OSDMenuFont_14
Definition:
OSDMenuInit.c:41
OSDMenuFont_20B
tFontDataUC OSDMenuFont_20B
Definition:
OSDMenuInit.c:45
OSDMenuFont_20
tFontDataUC OSDMenuFont_20
Definition:
OSDMenuInit.c:44
OSDMenuFont_16
tFontDataUC OSDMenuFont_16
Definition:
OSDMenuInit.c:42
FMUC_GetStringHeight
dword FMUC_GetStringHeight(const char *Text, tFontDataUC *FontData)
Definition:
FMUC_GetStringHeight.c:4
OSDMenuGetStringHeight
dword OSDMenuGetStringHeight(const char *str, byte fntSize)
Definition:
OSDMenuGetStringHeight.c:3
TRACEEXIT
#define TRACEEXIT()
Definition:
libFireBird.h:1244
TRACEENTER
#define TRACEENTER()
Definition:
libFireBird.h:1243
TMSOSDMenu
OSDMenuGetStringHeight.c
Generated on Fri Apr 29 2022 13:34:01 for FireBirdLib - Topfield TMS PVR TAP Programming Library by
1.9.3