FireBirdLib - Topfield TMS PVR TAP Programming Library
FMUC_FreeFontFile.c
Go to the documentation of this file.
1
#include <unistd.h>
2
#include "
FBLib_FontManager.h
"
3
4
void
FMUC_FreeFontFile
(
tFontDataUC
*FontData)
5
{
6
TRACEENTER
();
7
8
dword i;
9
10
if
(FontData)
11
{
12
for
(i = 0; i < FontData->
GlyphCacheEntries
; i++)
13
if
(FontData->
GlyphCache
[i].
GlyphData
)
FMUC_FreeMemory
(
"FMUC_FreeFontFile"
, FontData->
GlyphCache
[i].
GlyphData
);
14
15
if
(FontData->
GlyphCache
)
FMUC_FreeMemory
(
"FMUC_FreeFontFile"
, FontData->
GlyphCache
);
16
if
(FontData->
FontDef
)
FMUC_FreeMemory
(
"FMUC_FreeFontFile"
, FontData->
FontDef
);
17
if
(FontData->
FileHandle
> 0) close(FontData->
FileHandle
);
18
19
memset(FontData, 0,
sizeof
(
tFontDataUC
));
20
}
21
22
TRACEEXIT
();
23
}
FBLib_FontManager.h
FMUC_FreeMemory
void FMUC_FreeMemory(char *Requester, void *Pointer)
Definition:
FMUC_MemDebug.c:87
FMUC_FreeFontFile
void FMUC_FreeFontFile(tFontDataUC *FontData)
Definition:
FMUC_FreeFontFile.c:4
TRACEEXIT
#define TRACEEXIT()
Definition:
libFireBird.h:1244
TRACEENTER
#define TRACEENTER()
Definition:
libFireBird.h:1243
tFontDataUC
Definition:
libFireBird.h:1849
tFontDataUC::GlyphCache
tGlyphCacheUC * GlyphCache
Definition:
libFireBird.h:1854
tFontDataUC::GlyphCacheEntries
dword GlyphCacheEntries
Definition:
libFireBird.h:1853
tFontDataUC::FileHandle
int FileHandle
Definition:
libFireBird.h:1850
tFontDataUC::FontDef
tFontDefUC * FontDef
Definition:
libFireBird.h:1852
tGlyphCacheUC::GlyphData
byte * GlyphData
Definition:
libFireBird.h:1843
FontManager
FMUC_FreeFontFile.c
Generated on Fri Apr 29 2022 13:34:01 for FireBirdLib - Topfield TMS PVR TAP Programming Library by
1.9.3