Skip to content

Commit 3565635

Browse files
committed
Fix sprite mirroring
1 parent 363f099 commit 3565635

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

src/chips/cgia.c

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -917,7 +917,10 @@ void cgia_encode_sprite_both(
917917
}
918918
}
919919
--width;
920-
++line_data;
920+
if (mirror)
921+
--line_data;
922+
else
923+
++line_data;
921924
}
922925
}
923926
else {
@@ -942,7 +945,10 @@ void cgia_encode_sprite_both(
942945
}
943946
}
944947
--width;
945-
++line_data;
948+
if (mirror)
949+
--line_data;
950+
else
951+
++line_data;
946952
}
947953
}
948954
}

0 commit comments

Comments
 (0)