mirror of https://github.com/mgba-emu/mgba.git
GB Printer: Reset printer buffer index after printing
This commit is contained in:
parent
9fa7767ed9
commit
2d737ff367
1
CHANGES
1
CHANGES
|
@ -35,6 +35,7 @@ Emulation fixes:
|
|||
- 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)
|
||||
|
|
|
@ -222,6 +222,7 @@ static uint8_t GBPrinterWriteSC(struct GBSIODriver* driver, uint8_t value) {
|
|||
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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue