Skip to content

Commit

Permalink
Add shadow to city labels
Browse files Browse the repository at this point in the history
  • Loading branch information
alexbatalov committed Dec 29, 2022
1 parent 73cc93a commit 248d6df
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/worldmap.cc
Original file line number Diff line number Diff line change
Expand Up @@ -5413,7 +5413,7 @@ static int wmInterfaceDrawCircleOverlay(CityInfo* city, CitySizeDescription* cit
name,
width,
WM_WINDOW_WIDTH,
_colorTable[992]);
_colorTable[992] | FONT_SHADOW);
}

return 0;
Expand Down Expand Up @@ -5938,7 +5938,12 @@ static int wmTownMapRefresh()
if (messageListItem.text != NULL) {
int width = fontGetStringWidth(messageListItem.text);
// CE: Slightly increase whitespace between marker and entrance name.
windowDrawText(wmBkWin, messageListItem.text, width, wmGenData.hotspotNormalFrmImage.getWidth() / 2 + entrance->x - width / 2, wmGenData.hotspotNormalFrmImage.getHeight() + entrance->y + 4, _colorTable[992] | 0x2010000);
windowDrawText(wmBkWin,
messageListItem.text,
width,
wmGenData.hotspotNormalFrmImage.getWidth() / 2 + entrance->x - width / 2,
wmGenData.hotspotNormalFrmImage.getHeight() + entrance->y + 4,
_colorTable[992] | 0x2000000 | FONT_SHADOW);
}
}
}
Expand Down

0 comments on commit 248d6df

Please sign in to comment.