You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There's a little bug in the clear() method, which just clears the monochrome framebuffer (I guess memset does a null pointer check, preventing a crash if called in colour mode).
Think it needs to be something like the below (I've added a parameter to set the colour).
Thanks for the message, I am looking into it. It's definitely a bug.
Memset doesn't do a null pointer check, I think the reason it doesn't crash might be that there's nothing in the memory map at address 0, I can't remember. It should be OK to set the screen to a colour using memset but you can't use memset to set a mono screen to white (as it has a black guard band at the end of each line)
OK I think I've fixed this. I added the colour parameter and colour setting code as you suggested and added a correct way to set the background in mono mode so both black and white work.
There's a little bug in the clear() method, which just clears the monochrome framebuffer (I guess memset does a null pointer check, preventing a crash if called in colour mode).
Think it needs to be something like the below (I've added a parameter to set the colour).
P.S. Thanks for an amazing library!
The text was updated successfully, but these errors were encountered: