CMD_TEXT not showing up after CMD_ROTATEAROUND #112
-
Hello! This is happening for me in both the EVE Screen Editor and when using this library to actually run the code on my board. So it's not a problem with the library, but I'm hoping I can find help here. I am trying to load an image from flash, then rotate it, and that all works. But when I try to add text after that operation the text doesn't show up. This is an example of the commands out of EVE Screen Editor // I can see this text just fine // This part works // If after that I try to add: The text does not show up. I can move it above the FLASHREAD and it works. If I take out either the CMD_ROTATEAROUND or CMD_SETMATRIX it works. Any help much appreciated. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
The transformation matrix gets applied to the text as well. |
Beta Was this translation helpful? Give feedback.
The transformation matrix gets applied to the text as well.
A pair of SAVE_CONTEXT() / RESTORE_CONTEXT() calls around the rotation changes that.
EVE_cmd_dl(DL_SAVE_CONTEXT); / EVE_cmd_dl(DL_RESTORE_CONTEXT);