Skip to content

Commit 3e098b1

Browse files
committed
HW cursor position fixing
1 parent 4a087b8 commit 3e098b1

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/video/vid_c&t_69000.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1533,8 +1533,10 @@ chips_69000_write_ext_reg(chips_69000_t* chips, uint8_t val)
15331533
case 0xA6:
15341534
chips->ext_regs[chips->ext_index] = val;
15351535
chips->svga.hwcursor.y = val | (chips->ext_regs[0xA7] & 7) << 8;
1536-
if (chips->ext_regs[0xA7] & 0x80)
1537-
chips->svga.hwcursor.y = -chips->svga.hwcursor.y;
1536+
if (chips->ext_regs[0xA7] & 0x80) {
1537+
chips->svga.hwcursor.yoff = chips->svga.hwcursor.y;
1538+
chips->svga.hwcursor.y = 0;
1539+
}
15381540
break;
15391541
case 0xA7:
15401542
chips->ext_regs[chips->ext_index] = val;

0 commit comments

Comments
 (0)