We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8ff9937 commit f75fbb1Copy full SHA for f75fbb1
examples/library_examples/graphx/text_flipped/src/main.c
@@ -41,7 +41,7 @@ void PrintCenteredFlippedText(char *str)
41
x = (GFX_LCD_WIDTH - gfx_GetStringWidth(str)) / 2;
42
y = (GFX_LCD_HEIGHT - FONT_HEIGHT) / 2;
43
44
- while (*string)
+ while (string >= str)
45
{
46
gfx_Sprite(gfx_RotateSpriteHalf(gfx_GetSpriteChar(*string), ch), x, y);
47
x += gfx_GetCharWidth(*string--);
0 commit comments