Skip to content

Commit

Permalink
Issue#217: Fix LED rendering using same src and dest bitmap.
Browse files Browse the repository at this point in the history
  • Loading branch information
Steve Fosdick committed Jan 2, 2024
1 parent e624e51 commit 12d7ba4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/vidalleg.c
Original file line number Diff line number Diff line change
Expand Up @@ -465,8 +465,10 @@ static inline void fill_letterbox(void)
static void render_leds(void)
{
if (vid_ledlocation > LED_LOC_NONE) {
if (led_ticks > 0 && --led_ticks == 0)
if (led_ticks > 0 && --led_ticks == 0) {
led_timer_fired();
al_set_target_backbuffer(al_get_current_display());
}
float w = al_get_bitmap_width(led_bitmap);
float h = al_get_bitmap_height(led_bitmap);
if (vid_ledvisibility == LED_VIS_ALWAYS || (vid_ledvisibility == LED_VIS_TRANSIENT && led_any_transient_led_on())) {
Expand Down

0 comments on commit 12d7ba4

Please sign in to comment.