mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-29 16:31:05 +02:00
revert f20a14dd00
&& f20a14dd00
Origin commit data
------------------
Branch: ni/coolstream
Commit: f3dcf52ea0
Author: Jacek Jendrzej <overx300@gmail.com>
Date: 2013-04-08 (Mon, 08 Apr 2013)
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
@@ -432,14 +432,8 @@ void Font::RenderString(int x, int y, const int width, const char *text, const u
|
|||||||
static fb_pixel_t oldbgcolor = 0, oldfgcolor = 0;
|
static fb_pixel_t oldbgcolor = 0, oldfgcolor = 0;
|
||||||
static fb_pixel_t colors[256]={0};
|
static fb_pixel_t colors[256]={0};
|
||||||
|
|
||||||
/* fetch bgcolor from framebuffer, using lower left edge of the font... */
|
fb_pixel_t bgcolor = frameBuffer->realcolor[color];
|
||||||
fb_pixel_t bgcolor = *(frameBuffer->getFrameBufferPointer() + x +
|
fb_pixel_t fgcolor = frameBuffer->realcolor[(((((int)color) + 2) | 7) - 2)];
|
||||||
y * frameBuffer->getStride() / sizeof(fb_pixel_t));
|
|
||||||
// fb_pixel_t bgcolor = frameBuffer->realcolor[color];
|
|
||||||
uint8_t fgindex = color; /* index of font color in the palette */
|
|
||||||
if (color > COL_BLACK0 && color < 254) /* bigger than 254 would result in > 255 */
|
|
||||||
fgindex = ((((int)color) + 2) | 7) - 2; /* no idea what this does exactly... */
|
|
||||||
fb_pixel_t fgcolor = frameBuffer->realcolor[fgindex];
|
|
||||||
|
|
||||||
if((oldbgcolor != bgcolor) || (oldfgcolor != fgcolor)) {
|
if((oldbgcolor != bgcolor) || (oldfgcolor != fgcolor)) {
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user