Skip to content

Commit

Permalink
draw skipped hits too
Browse files Browse the repository at this point in the history
  • Loading branch information
fmang committed Nov 11, 2017
1 parent 56f61aa commit 81ea84b
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/game/osu/draw.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}

Expand Down

0 comments on commit 81ea84b

Please sign in to comment.