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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user