Skip to content

Commit

Permalink
Banshee / Voodoo3: Fixed check for address wrap during update().
Browse files Browse the repository at this point in the history
  • Loading branch information
vruppert committed Jun 1, 2024
1 parent 9264301 commit 12e7803
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bochs/iodev/display/voodoo.cc
Original file line number Diff line number Diff line change
Expand Up @@ -599,8 +599,8 @@ void bx_voodoo_base_c::update(void)
iHeight = s.vdraw.height;
start &= v->fbi.mask;
Bit8u *disp_ptr = &v->fbi.ram[start];
if ((start + pitch * iHeight) > v->fbi.mask) {
BX_ERROR(("update(): skip address wrap (start = 0x%08x)", start));
if ((start + pitch * iHeight) > (v->fbi.mask + 1)) {
BX_ERROR(("skip address wrap during update() (start = 0x%08x)", start));
BX_UNLOCK(render_mutex);
return;
}
Expand Down

0 comments on commit 12e7803

Please sign in to comment.