Cirrus: Modified redraw code added for #221 to fix stack overflow (#358).

This commit is contained in:
Volker Ruppert 2024-10-04 09:22:01 +02:00
parent 9054a9c998
commit 85c58ff450

View File

@ -457,7 +457,7 @@ void bx_svga_cirrus_c::redraw_area(unsigned x0, unsigned y0, unsigned width,
yt1 = (BX_CIRRUS_THIS svga_yres - 1) / Y_TILESIZE;
}
if ((x0 + width) > svga_xres) {
BX_CIRRUS_THIS redraw_area(0, y0 + 1, width, height);
BX_CIRRUS_THIS redraw_area(0, y0 + 1, x0 + width - svga_xres, height - 1);
}
for (yti=yt0; yti<=yt1; yti++) {
for (xti=xt0; xti<=xt1; xti++) {