Skip to content
Snippets Groups Projects
Commit 6eb2ed3d authored by rswindell's avatar rswindell
Browse files

When there is fontdata in the XBin file and it doesn't match the current

detected screen mode, display a warning, but still display the file.
Many times, traditional .xb files (not xbimages) will look fine when
ignoring the embedded font data.
parent 806279ae
No related branches found
No related tags found
No related merge requests found
......@@ -136,8 +136,8 @@ function drawFile(file) {
}
f.close();
if (image.font && image.font.length && image.charheight != cterm.charheight(console.screen_rows)) {
delete image;
return "Sorry, your terminal's screen dimensions are not compatible with this file";
alert(format("Warning: file intended for a different char height (%u), font not used.", image.charheight));
console.pause();
}
cterm.xbin_draw(image);
cterm.xbin_cleanup(image);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment