forked from speed-dreams/speed-dreams-code
Changes as described in the "How to" mail:
Free the allocated fonts git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@5829 30fe4595-0a0c-4342-8851-515496e4dcbd Former-commit-id: 0adc028139e733281440d56885e03be1b8154e55 Former-commit-id: a8c05479af35b37426067c32fb7edfea472e0915
This commit is contained in:
parent
f32daa06a0
commit
5c7340a953
3 changed files with 12 additions and 0 deletions
|
@ -125,6 +125,7 @@ void
|
||||||
gfuiShutdown(void)
|
gfuiShutdown(void)
|
||||||
{
|
{
|
||||||
gfctrlJoyShutdown();
|
gfctrlJoyShutdown();
|
||||||
|
gfuiFreeFonts();
|
||||||
shutdownMusic();
|
shutdownMusic();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -414,6 +414,7 @@ extern void gfuiReleaseCheckbox(tGfuiObject *obj);
|
||||||
extern void gfuiReleaseProgressbar(tGfuiObject *obj);
|
extern void gfuiReleaseProgressbar(tGfuiObject *obj);
|
||||||
|
|
||||||
extern void gfuiLoadFonts(void);
|
extern void gfuiLoadFonts(void);
|
||||||
|
extern void gfuiFreeFonts(void);
|
||||||
|
|
||||||
extern void gfuiEditboxKey(tGfuiObject *obj, int key, int modifier);
|
extern void gfuiEditboxKey(tGfuiObject *obj, int key, int modifier);
|
||||||
|
|
||||||
|
|
|
@ -62,6 +62,16 @@ void swap32(unsigned int *p, unsigned int size)
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
void gfuiFreeFonts(void)
|
||||||
|
{
|
||||||
|
GfuiFontClass* font;
|
||||||
|
for ( int I = 0; I < GFUI_FONT_NB; I++)
|
||||||
|
{
|
||||||
|
font = gfuiFont[I];
|
||||||
|
delete font;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
void gfuiLoadFonts(void)
|
void gfuiLoadFonts(void)
|
||||||
{
|
{
|
||||||
void *param;
|
void *param;
|
||||||
|
|
Loading…
Reference in a new issue