fbaccel: fix paintPixel for coolstream

This commit is contained in:
Stefan Seyfried
2013-01-14 00:59:06 +01:00
parent 28e1a4a988
commit f19f1d7414

View File

@@ -413,8 +413,11 @@ void CFbAccel::paintRect(const int x, const int y, const int dx, const int dy, c
void CFbAccel::paintPixel(const int x, const int y, const fb_pixel_t col) void CFbAccel::paintPixel(const int x, const int y, const fb_pixel_t col)
{ {
#if HAVE_TRIPLEDRAGON || defined (USE_NEVIS_GXA) #if HAVE_TRIPLEDRAGON
paintLine(x, y, x, y, col); setColor(col);
dfbdest->DrawLine(dfbdest, x, y, x, y);
#elif defined (USE_NEVIS_GXA)
paintLine(x, y, x + 1, y, col);
#else #else
fb_pixel_t *pos = fb->getFrameBufferPointer(); fb_pixel_t *pos = fb->getFrameBufferPointer();
pos += (fb->stride / sizeof(fb_pixel_t)) * y; pos += (fb->stride / sizeof(fb_pixel_t)) * y;