@@ -407,7 +407,7 @@ static errr sdl_FontCreate(sdl_Font *font, const char *fontname, SDL_Surface *su
407
407
/*
408
408
* Draw some text onto a surface, allowing shaded backgrounds.
409
409
* The surface is first checked to see if it is compatible with
410
- * this font, if it isn't the the font will be 're-precalculated'.
410
+ * this font, if it isn't then the font will be 're-precalculated'.
411
411
*
412
412
* You can, I suppose, use one font on many surfaces, but it is
413
413
* definitely not recommended. One font per surface is good enough.
@@ -448,7 +448,7 @@ static errr sdl_mapFontDraw(sdl_Font *font, SDL_Surface *surface, SDL_Color colo
448
448
/*
449
449
* Draw some text onto a surface
450
450
* The surface is first checked to see if it is compatible with
451
- * this font, if it isn't the the font will be 're-precalculated'
451
+ * this font, if it isn't then the font will be 're-precalculated'
452
452
*
453
453
* You can, I suppose, use one font on many surfaces, but it is
454
454
* definitely not recommended. One font per surface is good enough.
@@ -2906,7 +2906,7 @@ static errr Term_bigcurs_sdl(int col, int row)
2906
2906
2907
2907
/* If we are using overdraw, draw a double height cursor (disabled for now) */
2908
2908
/*if (!Term_info(col, row, &a, &c, &ta, &tc)) j = (a & 0x7F);
2909
- if (overdraw && (j > 2 ) && (j >= overdraw) && (j <= overdraw_max))
2909
+ if (overdraw && (j > ROW_MAP + 1 ) && (j >= overdraw) && (j <= overdraw_max))
2910
2910
{
2911
2911
rc.y -= rc.h;
2912
2912
rc.h = (rc.h << 1);
@@ -3184,7 +3184,7 @@ static void sdl_DrawTile(term_window *win, int col, int row, SDL_Rect rc, SDL_Re
3184
3184
}
3185
3185
3186
3186
/* If we are using overdraw, draw the top rectangle */
3187
- if (overdraw && (row > 2 ) && (j >= overdraw ) && (j <= overdraw_max ))
3187
+ if (overdraw && (row > ROW_MAP + 1 ) && (j >= overdraw ) && (j <= overdraw_max ))
3188
3188
{
3189
3189
/* Double the height */
3190
3190
src .y -= rc .h ;
@@ -3325,7 +3325,7 @@ static errr Term_text_sdl(int col, int row, int n, u16b a, const char *s)
3325
3325
tilex = COL_MAP + ((col - COL_MAP + i ) / tile_wid ) * tile_wid ;
3326
3326
tiley = ROW_MAP + ((row - ROW_MAP ) / tile_hgt + j ) * tile_hgt ;
3327
3327
3328
- if (overdraw && (tiley > 2 ) && !Term_info (tilex , tiley , & fa , & fc , & ta , & tc ))
3328
+ if (overdraw && (tiley > ROW_MAP + 1 ) && !Term_info (tilex , tiley , & fa , & fc , & ta , & tc ))
3329
3329
{
3330
3330
int row = (fa & 0x7F );
3331
3331
int trow = (ta & 0x7F );
@@ -3440,7 +3440,7 @@ static errr Term_pict_sdl(int col, int row, int n, const u16b *ap, const char *c
3440
3440
/* Redraw the bottom tile (recursively) */
3441
3441
while (j )
3442
3442
{
3443
- if (overdraw && (row + j * tile_hgt > 2 ) &&
3443
+ if (overdraw && (row + j * tile_hgt > ROW_MAP + 1 ) &&
3444
3444
!Term_info (col + i * tile_wid , row + j * tile_hgt , & a , & c , & ta , & tc ))
3445
3445
{
3446
3446
int frow = (a & 0x7F );
@@ -3743,6 +3743,9 @@ static void init_windows(void)
3743
3743
3744
3744
/* Term 0 is at the top */
3745
3745
Zorder [i ] = ANGBAND_TERM_MAX - i - 1 ;
3746
+
3747
+ /* Hack -- set ANGBAND_FONTNAME for main window */
3748
+ if (i == 0 ) ANGBAND_FONTNAME = win -> req_font ;
3746
3749
}
3747
3750
3748
3751
/* Good to go... */
0 commit comments