Update vid_voodoo_banshee.c
Fix heap corruption.
This commit is contained in:
@@ -513,7 +513,7 @@ banshee_render_16bpp_tiled(svga_t *svga)
|
|||||||
if (addr >= svga->vram_max)
|
if (addr >= svga->vram_max)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
for (int x = 0; x <= svga->hdisp; x += 64) {
|
for (int x = 0; x < svga->hdisp; x += 64) {
|
||||||
if (svga->hwcursor_on || svga->overlay_on)
|
if (svga->hwcursor_on || svga->overlay_on)
|
||||||
svga->changedvram[addr >> 12] = 2;
|
svga->changedvram[addr >> 12] = 2;
|
||||||
if (svga->changedvram[addr >> 12] || svga->fullchange) {
|
if (svga->changedvram[addr >> 12] || svga->fullchange) {
|
||||||
|
Reference in New Issue
Block a user