level name outline

This commit is contained in:
KikooDX 2021-12-19 15:32:13 +01:00
parent 47309f7142
commit e0a4d3393c
1 changed files with 12 additions and 2 deletions

View File

@ -120,8 +120,18 @@ level_draw(void)
void
level_draw_name(void)
{
dprint_opt(DWIDTH - 4, DHEIGHT - 2, C_BLACK, C_NONE, DTEXT_RIGHT,
DTEXT_BOTTOM, "%s", levels[level.id].name);
const int dx = DWIDTH - 4;
const int dy = DHEIGHT - 2;
int x = 2;
while (x-- > -1) {
int y = 2;
while (y-- > -1) {
dprint_opt(dx + x, dy + y, C_WHITE, C_NONE, DTEXT_RIGHT,
DTEXT_BOTTOM, "%s", levels[level.id].name);
}
}
dprint_opt(dx, dy, C_BLACK, C_NONE, DTEXT_RIGHT, DTEXT_BOTTOM, "%s",
levels[level.id].name);
}
int