Previously getInputTextString in debug builds would overwrite the edge of the displayBuffer due to the use of plotCharWithColor. This happened, for example, when printing the default save file name for debug builds (which have long version strings).
This change adds guarding to the plotCharWithColor and plotCharToBuffer (which was already there but only as an assert for debug builds). I haven't changed plotChar since it's a lower level function where the caller will have to take responsibility for not writing outside of bounds.
Previously
getInputTextString
in debug builds would overwrite the edge of thedisplayBuffer
due to the use ofplotCharWithColor
. This happened, for example, when printing the default save file name for debug builds (which have long version strings). This change adds guarding to theplotCharWithColor
andplotCharToBuffer
(which was already there but only as an assert for debug builds). I haven't changedplotChar
since it's a lower level function where the caller will have to take responsibility for not writing outside of bounds.