voodoo: fix Hornet games POST crash
This commit is contained in:
parent
712222e42b
commit
83e21e99e4
@ -3151,7 +3151,7 @@ int32_t voodoo_device::register_w(voodoo_device *vd, offs_t offset, uint32_t dat
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* create a new visarea */
|
/* create a new visarea */
|
||||||
visarea.set(hbp, hbp + hvis - 1, vbp, vbp + vvis - 1);
|
visarea.set(hbp, hbp + std::max(hvis - 1, 0), vbp, vbp + std::max(vvis - 1, 0));
|
||||||
|
|
||||||
/* keep within bounds */
|
/* keep within bounds */
|
||||||
visarea.max_x = (std::min)(visarea.max_x, htotal - 1);
|
visarea.max_x = (std::min)(visarea.max_x, htotal - 1);
|
||||||
|
Loading…
Reference in New Issue
Block a user