@@ -4711,8 +4711,12 @@ int worldmapWindowInit()
4711
4711
CacheEntry* frmHandle;
4712
4712
4713
4713
_wmLastRndTime = _get_time ();
4714
+
4715
+ // SFALL: Fix default worldmap font.
4716
+ // CE: This setting affects only city names. In Sfall it's configurable via
4717
+ // WorldMapFontPatch and is turned off by default.
4714
4718
_fontnum = fontGetCurrent ();
4715
- fontSetCurrent (0 );
4719
+ fontSetCurrent (101 );
4716
4720
4717
4721
_map_save_in_game (true );
4718
4722
@@ -5772,11 +5776,6 @@ int _wmMatchWorldPosToArea(int a1, int a2, int* a3)
5772
5776
return 0 ;
5773
5777
}
5774
5778
5775
- // FIXME: This function does not set current font, which is a bit unusual for a
5776
- // function which draw text. I doubt it was done on purpose, likely simply
5777
- // forgotten. Because of this, city names are rendered with current font, which
5778
- // can be any, but in this case it uses default text font, not interface font.
5779
- //
5780
5779
// 0x4C3FA8
5781
5780
int worldmapWindowRenderCity (CityInfo* city, CitySizeDescription* citySizeDescription, unsigned char * dest, int x, int y)
5782
5781
{
@@ -5792,7 +5791,8 @@ int worldmapWindowRenderCity(CityInfo* city, CitySizeDescription* citySizeDescri
5792
5791
_circleBlendTable,
5793
5792
_commonGrayTable);
5794
5793
5795
- int nameY = y + citySizeDescription->height + 1 ;
5794
+ // CE: Slightly increase whitespace between cirle and city name.
5795
+ int nameY = y + citySizeDescription->height + 3 ;
5796
5796
int maxY = 464 - fontGetLineHeight ();
5797
5797
if (nameY < maxY) {
5798
5798
MessageListItem messageListItem;
@@ -6316,7 +6316,8 @@ int worldmapCityMapViewRefresh()
6316
6316
if (messageListGetItem (&gWorldmapMessageList , &messageListItem)) {
6317
6317
if (messageListItem.text != NULL ) {
6318
6318
int width = fontGetStringWidth (messageListItem.text );
6319
- windowDrawText (gWorldmapWindow , messageListItem.text , width, gWorldmapHotspotUpFrmWidth / 2 + entrance->x - width / 2 , gWorldmapHotspotUpFrmHeight + entrance->y + 2 , _colorTable[992 ] | 0x2010000 );
6319
+ // CE: Slightly increase whitespace between marker and entrance name.
6320
+ windowDrawText (gWorldmapWindow , messageListItem.text , width, gWorldmapHotspotUpFrmWidth / 2 + entrance->x - width / 2 , gWorldmapHotspotUpFrmHeight + entrance->y + 4 , _colorTable[992 ] | 0x2010000 );
6320
6321
}
6321
6322
}
6322
6323
}
0 commit comments