Replace CENTER_LEFT with TOP_LEFT to match other printf function (#1295)

This commit is contained in:
Florian Gareis 2020-09-26 12:02:13 +02:00 committed by GitHub
parent 01bbd04a5a
commit 0e59243b83
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -299,7 +299,7 @@ void DisplayBuffer::printf(int x, int y, Font *font, TextAlign align, const char
void DisplayBuffer::printf(int x, int y, Font *font, const char *format, ...) { void DisplayBuffer::printf(int x, int y, Font *font, const char *format, ...) {
va_list arg; va_list arg;
va_start(arg, format); va_start(arg, format);
this->vprintf_(x, y, font, COLOR_ON, TextAlign::CENTER_LEFT, format, arg); this->vprintf_(x, y, font, COLOR_ON, TextAlign::TOP_LEFT, format, arg);
va_end(arg); va_end(arg);
} }
void DisplayBuffer::set_writer(display_writer_t &&writer) { this->writer_ = writer; } void DisplayBuffer::set_writer(display_writer_t &&writer) { this->writer_ = writer; }