Skip to content

Commit

Permalink
Legacy SDL: Fixed fullscreen textmode on Windows (issue #435).
Browse files Browse the repository at this point in the history
  • Loading branch information
vruppert committed Dec 28, 2024
1 parent 297e52d commit d893f84
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bochs/gui/sdl.cc
Original file line number Diff line number Diff line change
Expand Up @@ -544,7 +544,7 @@ void bx_sdl_gui_c::draw_char(Bit8u ch, Bit8u fc, Bit8u bc, Bit16u xc, Bit16u yc,
buf = (Uint32 *)sdl_screen->pixels + (headerbar_height + yc) * pitch + xc;
} else {
pitch = sdl_fullscreen->pitch/4;
buf = (Uint32 *)sdl_fullscreen->pixels + yc * pitch + xc;
buf = (Uint32 *)sdl_fullscreen->pixels + yc * pitch + xc + sdl_fullscreen->offset/4;
}
fgcolor = sdl_palette[fc];
bgcolor = sdl_palette[bc];
Expand Down

0 comments on commit d893f84

Please sign in to comment.