From 85c58ff450adaca3371ae0bd9a799773d4f562a7 Mon Sep 17 00:00:00 2001 From: Volker Ruppert Date: Fri, 4 Oct 2024 09:22:01 +0200 Subject: [PATCH] Cirrus: Modified redraw code added for #221 to fix stack overflow (#358). --- bochs/iodev/display/svga_cirrus.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bochs/iodev/display/svga_cirrus.cc b/bochs/iodev/display/svga_cirrus.cc index 6ace045cd..a4290dd37 100644 --- a/bochs/iodev/display/svga_cirrus.cc +++ b/bochs/iodev/display/svga_cirrus.cc @@ -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++) {