Browse Source

Merge branch 'wip-fw16' of https://source.mntmn.com/MNT/zz9000-firmware into wip-fw16

wip-fw16
mntmn 1 month ago
parent
commit
8eb733454e
Signed by: mntmn <lukas@mntre.com> GPG Key ID: 376511EB67AD7BAF
1 changed files with 5 additions and 5 deletions
  1. +5
    -5
      ZZ9000_proto.sdk/ZZ9000OS/src/main.c

+ 5
- 5
ZZ9000_proto.sdk/ZZ9000OS/src/main.c View File

@@ -1098,15 +1098,15 @@ int main() {
// The "+#" offset at the end is dependent on implementation timing slack, and needs
// to be adjusted based on the sprite X offset produced by the current run.
sprite_x = (int16_t)zdata + sprite_x_offset + 3;
sprite_x_adj = sprite_x;
// horizontally doubled mode
if (scalemode&1) sprite_x*=2;
if (scalemode & 1) sprite_x *=2;
sprite_x_adj = sprite_x;
}
else {
sprite_y = (int16_t)zdata + sprite_y_offset;
sprite_y_adj = sprite_y;
sprite_y = (int16_t)zdata + sprite_y_offset + 1;
// vertically doubled mode
if (scalemode&2) sprite_y*=2;
if (scalemode & 2) sprite_y *= 2;
sprite_y_adj = sprite_y;

if (sprite_x < 0 || sprite_y < 0) {
if (sprite_clip_x != sprite_x || sprite_clip_y != sprite_y) {


Loading…
Cancel
Save