summaryrefslogtreecommitdiff
path: root/amiga/font_scan.c
diff options
context:
space:
mode:
authorChris Young <chris@unsatisfactorysoftware.co.uk>2015-08-17 18:15:29 +0100
committerChris Young <chris@unsatisfactorysoftware.co.uk>2015-08-17 18:15:29 +0100
commitfea40a0a78a70a29573bbdc940ea6f9ccdb6093b (patch)
tree4b1d6d2bd1e100a4ae9d50ed5fc7d7d20824d3a2 /amiga/font_scan.c
parentaaf7ebf9fd28d7e895f7fd8559970f2d0f9a0a7d (diff)
downloadnetsurf-fea40a0a78a70a29573bbdc940ea6f9ccdb6093b.tar.gz
netsurf-fea40a0a78a70a29573bbdc940ea6f9ccdb6093b.tar.bz2
Restrict all menu icon code to OS4+gadtools53.7
This avoids requests for TBimages: on OS3
Diffstat (limited to 'amiga/font_scan.c')
-rw-r--r--amiga/font_scan.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/amiga/font_scan.c b/amiga/font_scan.c
index 4f4b774b1..b65798d6e 100644
--- a/amiga/font_scan.c
+++ b/amiga/font_scan.c
@@ -215,7 +215,7 @@ static void ami_font_scan_gui_close(struct ami_font_scan_window *fsw)
static ULONG ami_font_scan_font(const char *fontname, lwc_string **glypharray)
{
struct OutlineFont *ofont;
- struct MinList *widthlist;
+ struct MinList *widthlist = NULL;
struct GlyphWidthEntry *gwnode;
ULONG foundglyphs = 0;
lwc_error lerror;
@@ -482,6 +482,7 @@ void ami_font_scan_init(const char *filename, bool force_scan, bool save,
found = ami_font_scan_load(filename, glypharray);
if(found == 0) {
+ LOG("Creating new font glyph cache");
if((list = NewObjList())) {
/* add preferred fonts list */