Michael Allison wrote:

> There has been some feedback from others on the development team
> around the tiles:
>   "The Rogue Level should ideally be text-mode. It freaks out the
>    tiled-version-only players when they first get there, but that
>    makes it a good reminder of NetHack's roots."
>
> The other supported tiled ports work this way too.  They display
> regular ASCII characters on the Rogue level, just like Rogue did.

-Adds Rogue-level ascii support.
-Also removes unicode support.

Some other build script tweaks as well.

M. Allison
This commit is contained in:
nethack.allison
2002-01-14 12:36:09 +00:00
parent 50b24456cd
commit 59b7cb4be4
8 changed files with 174 additions and 120 deletions
+19 -1
View File
@@ -14,7 +14,7 @@ static struct font_table_entry {
} font_table[MAXFONTS] ;
static int font_table_size = 0;
#define NHFONT_CODE(win, attr) (((win_type&0xFF)<<8)|(attr&0xFF))
#define NHFONT_CODE(win, attr) (((attr&0xFF)<<8)|(win_type&0xFF))
/* create font based on window type, charater attributes and
@@ -105,6 +105,24 @@ HGDIOBJ mswin_create_font(int win_type, int attr, HDC hdc)
lgfnt.lfPitchAndFamily = FIXED_PITCH; // pitch and family
/* lgfnt.lfFaceName */
break;
case NHW_MAP:
lgfnt.lfHeight = -TILE_Y; // height of font
lgfnt.lfWidth = -TILE_X; // average character width
lgfnt.lfEscapement = 0; // angle of escapement
lgfnt.lfOrientation = 0; // base-line orientation angle
lgfnt.lfWeight = FW_NORMAL; // font weight
lgfnt.lfItalic = FALSE; // italic attribute option
lgfnt.lfUnderline = FALSE; // underline attribute option
lgfnt.lfStrikeOut = FALSE; // strikeout attribute option
lgfnt.lfCharSet = DEFAULT_CHARSET; // character set identifier
// we need OEM charset for Rogue level
lgfnt.lfOutPrecision = OUT_DEFAULT_PRECIS; // output precision
lgfnt.lfClipPrecision = CLIP_DEFAULT_PRECIS; // clipping precision
lgfnt.lfQuality = DEFAULT_QUALITY; // output quality
lgfnt.lfPitchAndFamily = FIXED_PITCH; // pitch and family
_tcscpy( lgfnt.lfFaceName, TEXT("Terminal"));
break;
}
fnt = CreateFontIndirect(&lgfnt);