Fixed minor compile warnings, including incorrect output from convbdf tool.

This commit is contained in:
Stephen Anthony 2020-03-15 14:02:52 -02:30
parent d3ff85cf1f
commit 1d1460924a
4 changed files with 10 additions and 10 deletions

View File

@ -384,7 +384,7 @@ void LauncherDialog::setRomInfoFont(const Common::Size& area)
};
// Try to pick a font that works best, based on the available area
for(int i = 0; i < sizeof(FONTS) / sizeof(FontDesc); ++i)
for(size_t i = 0; i < sizeof(FONTS) / sizeof(FontDesc); ++i)
{
// only use fonts <= launcher fonts
if(instance().frameBuffer().launcherFont().getFontHeight() >= FONTS[i].height)

View File

@ -6325,9 +6325,9 @@ static const FontDesc stella14x28tDesc = {
29,
98,
stella14x28t_font_bits,
0, /* no encode table*/
0, /* fixed width*/
0, /* fixed bbox*/
nullptr, /* no encode table*/
nullptr, /* fixed width*/
nullptr, /* fixed bbox*/
32,
sizeof(stella14x28t_font_bits)/sizeof(uInt16)
};

View File

@ -7109,9 +7109,9 @@ static const FontDesc stella16x32tDesc = {
29,
98,
stella16x32t_font_bits,
0, /* no encode table*/
0, /* fixed width*/
0, /* fixed bbox*/
nullptr, /* no encode table*/
nullptr, /* fixed width*/
nullptr, /* fixed bbox*/
32,
sizeof(stella16x32t_font_bits)/sizeof(uInt16)
};

View File

@ -936,17 +936,17 @@ int gen_c_source(struct font* pf, char *path)
if (pf->offset)
sprintf(obuf, "%s_sysfont_offset,", fontname);
else
sprintf(obuf, "0, /* no encode table*/");
sprintf(obuf, "nullptr, /* no encode table*/");
if (pf->width)
sprintf(buf, "%s_sysfont_width,", fontname);
else
sprintf(buf, "0, /* fixed width*/");
sprintf(buf, "nullptr, /* fixed width*/");
if (pf->bbx)
sprintf(bbuf, "%s_sysfont_bbx,", fontname);
else
sprintf(bbuf, "0, /* fixed bbox*/");
sprintf(bbuf, "nullptr, /* fixed bbox*/");
fprintf(ofp,
"/* Exported structure definition. */\n"