Skip to content

Commit

Permalink
Fix a dumb copy-paste mistake
Browse files Browse the repository at this point in the history
  • Loading branch information
Cacodemon345 authored Dec 30, 2023
1 parent 02b4a72 commit bdae2ac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/video/vid_mga.c
Original file line number Diff line number Diff line change
Expand Up @@ -4728,10 +4728,10 @@ blit_trap(mystique_t *mystique)
}

if (mystique->maccess_running & MACCESS_ZWIDTH) {
mystique->dwgreg.extended_dr[0] += z_back_32 + mystique->dwgreg.extended_dr[3];
mystique->dwgreg.extended_dr[0] = z_back_32 + mystique->dwgreg.extended_dr[3];
mystique->dwgreg.dr[0] = (mystique->dwgreg.extended_dr[0] >> 16) & 0xFFFFFFFF;
} else {
mystique->dwgreg.dr[0] += z_back + mystique->dwgreg.dr[3];
mystique->dwgreg.dr[0] = z_back + mystique->dwgreg.dr[3];
mystique->dwgreg.extended_dr[0] = (mystique->dwgreg.extended_dr[0] & ~0xFFFFull) | ((uint64_t)mystique->dwgreg.dr[0] << 16ull);
}
mystique->dwgreg.dr[4] = r_back + mystique->dwgreg.dr[7];
Expand Down

0 comments on commit bdae2ac

Please sign in to comment.