Skip to content

Commit

Permalink
Fix vga palette sticky bug when dynamic ticks outpaced renders
Browse files Browse the repository at this point in the history
  • Loading branch information
Nopey committed Nov 30, 2024
1 parent 7a39c9a commit dc66306
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/video/vga_state.c
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ void vga_state_render(void) {
for(unsigned int i = 0; i < state.transformer_count; i++) {
state.transformers[i].callback(&tmp, &state.current, state.transformers[i].userdata);
}
damage_copy(&state.dmg_current, &tmp);
damage_combine(&state.dmg_current, &tmp);
damage_combine(&state.dmg_current, &state.dmg_previous);
damage_copy(&state.dmg_previous, &tmp);
state.transformer_count = 0;
Expand Down

0 comments on commit dc66306

Please sign in to comment.