Skip to content

Commit

Permalink
fix: Don't update min/max markers if paused
Browse files Browse the repository at this point in the history
  • Loading branch information
Peter Oettig committed Dec 27, 2024
1 parent 2efb7d7 commit deedda6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sdl.c
Original file line number Diff line number Diff line change
Expand Up @@ -684,7 +684,7 @@ int paint_frame(struct sdl_ctx *c, uint32_t seq, const uint8_t *data)

paint_colored_marker(c, c->crosshair, 2, (SDL_Color){c->textval, c->textval, c->textval, 0xFF});

if (c->show_min_max_marker) {
if (c->show_min_max_marker && !c->paused) {
paint_colored_marker(c, min_point, 1, SDL_COLOR_BLUE);
paint_colored_marker(c, max_point, 1, SDL_COLOR_RED);
}
Expand Down

0 comments on commit deedda6

Please sign in to comment.