From 20a85c3874eac682191dd2c15c711876e9b3bfed Mon Sep 17 00:00:00 2001 From: Stefan Seyfried Date: Wed, 15 Feb 2017 00:10:59 +0100 Subject: [PATCH] fb_accel_td: add missing getBackBufferPointer() this fixes tuxtxt rendering problems --- src/driver/fb_accel.h | 1 + src/driver/fb_accel_td.cpp | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/src/driver/fb_accel.h b/src/driver/fb_accel.h index e3eceaab5..090ef4cc4 100644 --- a/src/driver/fb_accel.h +++ b/src/driver/fb_accel.h @@ -171,6 +171,7 @@ class CFbAccelTD void paintLine(int xa, int ya, int xb, int yb, const fb_pixel_t col); void blit2FB(void *fbbuff, uint32_t width, uint32_t height, uint32_t xoff, uint32_t yoff, uint32_t xp, uint32_t yp, bool transp); void waitForIdle(const char *func = NULL); + fb_pixel_t * getBackBufferPointer() const; void setBlendMode(uint8_t); void setBlendLevel(int); }; diff --git a/src/driver/fb_accel_td.cpp b/src/driver/fb_accel_td.cpp index af3bf8f60..7033ed0bc 100644 --- a/src/driver/fb_accel_td.cpp +++ b/src/driver/fb_accel_td.cpp @@ -202,3 +202,8 @@ void CFbAccelTD::setBlendLevel(int level) if (level == 100) // sucks usleep(20000); } + +fb_pixel_t *CFbAccelTD::getBackBufferPointer() const +{ + return backbuffer; +}