libtonc
libtonc copied to clipboard
this code has a bug where it reads 32 bit value from IME, which is a 16 bit reg. this can cause open bus. IME is a 16 bit register...
This patch makes `tte_get_text_size` give correct results when the given string contains UTF-8 characters.
This is the exact same fix as https://github.com/devkitPro/libgba/pull/9.
Otherwise text printed in bmp16 format with this plotter is broken.