mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-28 07:51:11 +02:00
CComponents: don't paint the same box with different colors as background
Origin commit data
------------------
Branch: ni/coolstream
Commit: d18217effb
Author: Jacek Jendrzej <overx300@gmail.com>
Date: 2013-04-04 (Thu, 04 Apr 2013)
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
@@ -45,6 +45,7 @@ class CComponents
|
|||||||
bool firstPaint, shadow, is_painted, paint_bg;
|
bool firstPaint, shadow, is_painted, paint_bg;
|
||||||
|
|
||||||
void initVarBasic();
|
void initVarBasic();
|
||||||
|
bool allowPaint(int i);
|
||||||
void paintFbItems(bool do_save_bg = true);
|
void paintFbItems(bool do_save_bg = true);
|
||||||
virtual fb_pixel_t* getScreen(int ax, int ay, int dx, int dy);
|
virtual fb_pixel_t* getScreen(int ax, int ay, int dx, int dy);
|
||||||
comp_screen_data_t saved_screen;
|
comp_screen_data_t saved_screen;
|
||||||
|
@@ -78,6 +78,24 @@ void CComponents::initVarBasic()
|
|||||||
saved_screen.pixbuf = NULL;
|
saved_screen.pixbuf = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool CComponents::allowPaint(int i)
|
||||||
|
{
|
||||||
|
if(v_fbdata[i].fbdata_type == CC_FBDATA_TYPE_BOX)
|
||||||
|
return true;
|
||||||
|
|
||||||
|
|
||||||
|
if (v_fbdata[CC_FBDATA_TYPE_BOX].x != v_fbdata[i].x)
|
||||||
|
return true;
|
||||||
|
else if (v_fbdata[CC_FBDATA_TYPE_BOX].y != v_fbdata[i].y)
|
||||||
|
return true;
|
||||||
|
else if (v_fbdata[CC_FBDATA_TYPE_BOX].dx != v_fbdata[i].dx)
|
||||||
|
return true;
|
||||||
|
else if (v_fbdata[CC_FBDATA_TYPE_BOX].dy != v_fbdata[i].dy)
|
||||||
|
return true;
|
||||||
|
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
//paint framebuffer stuff and fill buffer
|
//paint framebuffer stuff and fill buffer
|
||||||
void CComponents::paintFbItems(bool do_save_bg)
|
void CComponents::paintFbItems(bool do_save_bg)
|
||||||
{
|
{
|
||||||
@@ -120,7 +138,7 @@ void CComponents::paintFbItems(bool do_save_bg)
|
|||||||
frameBuffer->paintBoxFrame(v_fbdata[i].x, v_fbdata[i].y, v_fbdata[i].dx, v_fbdata[i].dy, v_fbdata[i].frame_thickness, v_fbdata[i].color, v_fbdata[i].r);
|
frameBuffer->paintBoxFrame(v_fbdata[i].x, v_fbdata[i].y, v_fbdata[i].dx, v_fbdata[i].dy, v_fbdata[i].frame_thickness, v_fbdata[i].color, v_fbdata[i].r);
|
||||||
else if (fbtype == CC_FBDATA_TYPE_BACKGROUND)
|
else if (fbtype == CC_FBDATA_TYPE_BACKGROUND)
|
||||||
frameBuffer->paintBackgroundBoxRel(x, y, v_fbdata[i].dx, v_fbdata[i].dy);
|
frameBuffer->paintBackgroundBoxRel(x, y, v_fbdata[i].dx, v_fbdata[i].dy);
|
||||||
else
|
else if( allowPaint(i) )
|
||||||
frameBuffer->paintBoxRel(v_fbdata[i].x, v_fbdata[i].y, v_fbdata[i].dx, v_fbdata[i].dy, v_fbdata[i].color, v_fbdata[i].r, corner_type);
|
frameBuffer->paintBoxRel(v_fbdata[i].x, v_fbdata[i].y, v_fbdata[i].dx, v_fbdata[i].dy, v_fbdata[i].color, v_fbdata[i].r, corner_type);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user