Skip to content

Commit f75fbb1

Browse files
committed
test: fix text_flipped example
1 parent 8ff9937 commit f75fbb1

File tree

1 file changed

+1
-1
lines changed
  • examples/library_examples/graphx/text_flipped/src

1 file changed

+1
-1
lines changed

examples/library_examples/graphx/text_flipped/src/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ void PrintCenteredFlippedText(char *str)
4141
x = (GFX_LCD_WIDTH - gfx_GetStringWidth(str)) / 2;
4242
y = (GFX_LCD_HEIGHT - FONT_HEIGHT) / 2;
4343

44-
while (*string)
44+
while (string >= str)
4545
{
4646
gfx_Sprite(gfx_RotateSpriteHalf(gfx_GetSpriteChar(*string), ch), x, y);
4747
x += gfx_GetCharWidth(*string--);

0 commit comments

Comments
 (0)