Skip to content

Commit

Permalink
Voodoo2/Voodoo3: Fixed possible icon corruption in Windows 95.
Browse files Browse the repository at this point in the history
This should fix issue #405.
  • Loading branch information
vruppert committed Jan 5, 2025
1 parent 0e9f65d commit 5416eba
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions bochs/iodev/display/voodoo_func.h
Original file line number Diff line number Diff line change
Expand Up @@ -3628,7 +3628,7 @@ Bit32u register_r(Bit32u offset)
result |= 1 << 9;

if (v->type == VOODOO_2) {
if (v->fbi.cmdfifo[0].enabled && v->fbi.cmdfifo[0].depth > 0)
if (v->fbi.cmdfifo[0].enabled && (v->fbi.cmdfifo[0].depth > 0 || v->fbi.cmdfifo[0].cmd_ready))
result |= 7 << 7;
}
/* Banshee is different starting here */
Expand Down Expand Up @@ -3657,11 +3657,11 @@ Bit32u register_r(Bit32u offset)
result |= 3 << 9;

/* bit 11 is cmd FIFO 0 busy */
if (v->fbi.cmdfifo[0].enabled && v->fbi.cmdfifo[0].depth > 0)
if (v->fbi.cmdfifo[0].enabled && (v->fbi.cmdfifo[0].depth > 0 || v->fbi.cmdfifo[0].cmd_ready))
result |= 5 << 9;

/* bit 12 is cmd FIFO 1 busy */
if (v->fbi.cmdfifo[1].enabled && v->fbi.cmdfifo[1].depth > 0)
if (v->fbi.cmdfifo[1].enabled && (v->fbi.cmdfifo[1].depth > 0 || v->fbi.cmdfifo[1].cmd_ready))
result |= 9 << 9;
}

Expand Down

0 comments on commit 5416eba

Please sign in to comment.