@NebbishHacker
I was thinking about this strategy for my drawstring override:
get the area that is going to be covered by the string using fontHeight/fontWidth accounting for newlines in the string
clear this area with clearRect
then call the original drawstring
done, nice and simple, no further bookkeeping.
But using getModified is more universal as it seems to cover all graphics. I have an App that uses many screens, so I would have to do a lot of bookkeeping with the different getModified areas.
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
@NebbishHacker
I was thinking about this strategy for my drawstring override:
But using getModified is more universal as it seems to cover all graphics. I have an App that uses many screens, so I would have to do a lot of bookkeeping with the different getModified areas.
Hmmmmm...... pondering .........