"inverted rect in LCD_addUpdateRect()!" when printing text outside the screen

I'm running the game on a simulator on Linux. I'm writing directly in C.

When using pd->graphics->drawText and coordinates are off screen I get this repeatedly on stdout: "inverted rect in LCD_addUpdateRect()!"

I'm posting this as a bug report because I'm using 2.6.2, but in the changelog it sounds like this shouldn't happen since 2.6.1. Or maybe the changelog only meant it's fixed for the keyboard function.

Either way there is nothing in the documentation explaining you should check boundaries first.

1 Like

For what it's worth, this is harmless. You can deploy to device and it wont error.

I personally, haven't had this happen with drawText, but I can easily get it if a whole drawRect/fillRect is outside the screen bounds.

But yeah, the log is a little annoying.

1 Like