all repos — mgba @ 210c7a91cd5ff6f1d687724d405dbd2134dcea1a

mGBA Game Boy Advance Emulator

GBA e-Reader: Increase scanning stability more
Vicki Pfau vi@endrift.com
Sun, 23 Feb 2020 18:01:53 -0800
commit

210c7a91cd5ff6f1d687724d405dbd2134dcea1a

parent

b3f5e6b9eeee88dd8f1cd59d1c671ac8ee936ba0

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

jump to
M include/mgba/internal/gba/hardware.hinclude/mgba/internal/gba/hardware.h

@@ -16,8 +16,8 @@ #include <mgba/gba/interface.h>

mLOG_DECLARE_CATEGORY(GBA_HW); -#define EREADER_DOTCODE_STRIDE 1200 -#define EREADER_DOTCODE_SIZE (EREADER_DOTCODE_STRIDE * 40 + 200) +#define EREADER_DOTCODE_STRIDE 1420 +#define EREADER_DOTCODE_SIZE (EREADER_DOTCODE_STRIDE * 40) #define EREADER_CARDS_MAX 16 #define IS_GPIO_REGISTER(reg) ((reg) == GPIO_REG_DATA || (reg) == GPIO_REG_DIRECTION || (reg) == GPIO_REG_CONTROL)
M src/gba/ereader.csrc/gba/ereader.c

@@ -572,7 +572,7 @@ ++hw->eReaderY;

if (hw->eReaderY == (hw->eReaderSerial[0x15] | (hw->eReaderSerial[0x14] << 8))) { hw->eReaderY = 0; if (hw->eReaderX < 3400) { - hw->eReaderX += 220; + hw->eReaderX += 210; } } _eReaderReadData(hw);