Skip to content

Commit

Permalink
Cirrus: Modified redraw code added for #221 to fix stack overflow (#358
Browse files Browse the repository at this point in the history
…).
  • Loading branch information
vruppert committed Oct 4, 2024
1 parent 9054a9c commit 85c58ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bochs/iodev/display/svga_cirrus.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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++) {
Expand Down

0 comments on commit 85c58ff

Please sign in to comment.