Skip to content

Commit

Permalink
HW cursor position fixing
Browse files Browse the repository at this point in the history
  • Loading branch information
Cacodemon345 committed Feb 8, 2024
1 parent 4a087b8 commit 3e098b1
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/video/vid_c&t_69000.c
Original file line number Diff line number Diff line change
Expand Up @@ -1533,8 +1533,10 @@ chips_69000_write_ext_reg(chips_69000_t* chips, uint8_t val)
case 0xA6:
chips->ext_regs[chips->ext_index] = val;
chips->svga.hwcursor.y = val | (chips->ext_regs[0xA7] & 7) << 8;
if (chips->ext_regs[0xA7] & 0x80)
chips->svga.hwcursor.y = -chips->svga.hwcursor.y;
if (chips->ext_regs[0xA7] & 0x80) {
chips->svga.hwcursor.yoff = chips->svga.hwcursor.y;
chips->svga.hwcursor.y = 0;
}
break;
case 0xA7:
chips->ext_regs[chips->ext_index] = val;
Expand Down

0 comments on commit 3e098b1

Please sign in to comment.