From 81ea84b8cf3391292b5c597d98248275d73d72a3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Mangano-Tarumi?= Date: Sat, 11 Nov 2017 10:40:42 +0100 Subject: [PATCH] draw skipped hits too --- src/game/osu/draw.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/game/osu/draw.c b/src/game/osu/draw.c index 1b874a4..c7b9025 100644 --- a/src/game/osu/draw.c +++ b/src/game/osu/draw.c @@ -37,6 +37,15 @@ static void draw_hit_circle(struct oshu_display *display, struct oshu_beatmap *b oshu_vector d = radius / 3. + radius / 3. * I; oshu_draw_line(display, p - d, p + d); oshu_draw_line(display, p - d * I, p + d * I); + } else if (hit->state == OSHU_SKIPPED_HIT) { + SDL_SetRenderDrawColor(display->renderer, 64, 64, 255, 255); + oshu_point p = oshu_end_point(hit); + oshu_vector a = radius / 3.; + oshu_vector b = a * cexp(2. * M_PI / 3. * I); + oshu_vector c = b * cexp(2. * M_PI / 3. * I); + oshu_draw_line(display, p + a, p + b); + oshu_draw_line(display, p + b, p + c); + oshu_draw_line(display, p + c, p + a); } }