From e0a4d3393cfa4b60b6899ffd20fa8115c2ed6b4d Mon Sep 17 00:00:00 2001 From: KikooDX Date: Sun, 19 Dec 2021 15:32:13 +0100 Subject: [PATCH] level name outline --- src/level.c | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/src/level.c b/src/level.c index 866c3be..5f143f1 100644 --- a/src/level.c +++ b/src/level.c @@ -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