Three fixes to NetHackW font handling.

Check that player level is valid before checking if it is rogue.
Prevent attempting to pick a font that is too small.
Don't leak fonts when trying to find a font that fits.
This commit is contained in:
Bart House
2018-12-09 11:57:50 -08:00
parent 0573392f16
commit 88bbf781d1
2 changed files with 18 additions and 6 deletions
+3
View File
@@ -9,6 +9,9 @@
#include "winMS.h"
#define MIN_FONT_WIDTH 9
#define MIN_FONT_HEIGHT 12
typedef struct cached_font {
int code;
HFONT hFont;