kopia lustrzana https://github.com/OpenRTX/OpenRTX
Graphics: Fix print with TEXT_ALIGN_RIGHT not working
rodzic
fcf8dc2bcb
commit
8ded5fc9b6
|
@ -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;
|
||||
}
|
||||
|
|
Ładowanie…
Reference in New Issue