Skip to content

Commit

Permalink
DC_VSTOP was one line too late (#252)
Browse files Browse the repository at this point in the history
  • Loading branch information
mooinglemur authored Mar 19, 2024
1 parent 540c9d6 commit 150d4ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/video.c
Original file line number Diff line number Diff line change
Expand Up @@ -1140,7 +1140,7 @@ render_line(uint16_t y, float scan_pos_x)
// If video output is enabled, calculate color indices for line.
if (out_mode != 0) {
// Add border after if required.
if (y < vstart || y > vstop) {
if (y < vstart || y >= vstop) {
uint32_t border_fill = border_color;
border_fill = border_fill | (border_fill << 8);
border_fill = border_fill | (border_fill << 16);
Expand Down

0 comments on commit 150d4ae

Please sign in to comment.