diff --git a/openrtx/src/graphics.c b/openrtx/src/graphics.c index 560a16c3..e0731920 100644 --- a/openrtx/src/graphics.c +++ b/openrtx/src/graphics.c @@ -275,7 +275,7 @@ static inline uint16_t get_reset_x(textAlign_t alignment, case TEXT_ALIGN_CENTER: return (SCREEN_WIDTH - line_size)/2; case TEXT_ALIGN_RIGHT: - return startx - line_size; + return SCREEN_WIDTH - line_size - startx; } return 0; }