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