all repos — mgba @ 2d737ff367cc7a0a4f5bd9bfe50e71f65059337d

mGBA Game Boy Advance Emulator

GB Printer: Reset printer buffer index after printing
Vicki Pfau vi@endrift.com
Thu, 01 Aug 2019 20:11:12 -0700
commit

2d737ff367cc7a0a4f5bd9bfe50e71f65059337d

parent

9fa7767ed9ea34ec8932c880d47eaebfccc844e6

2 files changed, 2 insertions(+), 0 deletions(-)

jump to
M CHANGESCHANGES

@@ -35,6 +35,7 @@ - GB Audio: Deschedule channel 1 when disabled by sweep (fixes mgba.io/i/1467)

- GBA Memory: Fix STM/LDM to invalid VRAM - GB: Fix savedata initialization (fixes mgba.io/i/1473, mgba.io/i/1478) - GB Memory: Better emulate 0xFEA0 region on DMG, MGB and AGB + - GB Printer: Reset printer buffer index after printing Other fixes: - Qt: Fix some Qt display driver race conditions - Core: Improved lockstep driver reliability (Le Hoang Quyen)
M src/gb/sio/printer.csrc/gb/sio/printer.c

@@ -222,6 +222,7 @@ }

printer->print(printer, printer->currentIndex * 4 / GB_VIDEO_HORIZONTAL_PIXELS, printer->buffer); } printer->printWait = -1; + printer->currentIndex = 0; } else if (printer->printWait > 0) { --printer->printWait; }