mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-29 00:11:14 +02:00
components: rework classes
- outsourced some classes cc_item.cpp/h, cc_draw.cpp/h - added extra methodes for simple use of some basic components extra.cpp/h - rework clock handling: use timer class, reworked members for enable/disable clock with external timer events, tryed to fix some display issues related with infoclock and time osd clock in moviebrowser, channellist, menuus - reworked hide/kill handling, removed parameter for hide(), try to use cached backgrounds for other constallations, paint cache, image cache (all beta) - reworked shadow/frame handling, add shadow modes for left/right arrangement, TODO: repaint for existant instances required - reworked color gradient assignment (beta) ... Note: I had a data crash in my local git tree and i tryed to restore my historie, but most was lost. Therefore here the commit is large
This commit is contained in:
@@ -185,11 +185,15 @@ fb_pixel_t* CColorGradient::gradientColorToColor(fb_pixel_t start_col,fb_pixel_t
|
||||
int start_box = 0;
|
||||
int end_box = bSize;
|
||||
|
||||
if (mode == gradientDark2Light) {
|
||||
fb_pixel_t temp_col = start_col;
|
||||
fb_pixel_t temp_col = end_col;
|
||||
end_col = start_col;
|
||||
start_col = temp_col;
|
||||
|
||||
if (mode == gradientDark2Light){
|
||||
temp_col = start_col;
|
||||
start_col = end_col;
|
||||
end_col = temp_col;
|
||||
}
|
||||
}
|
||||
|
||||
uint8_t start_tr = (uint8_t)((start_col & 0xFF000000) >> 24);
|
||||
uint8_t start_r = (uint8_t)((start_col & 0x00FF0000) >> 16);
|
||||
|
Reference in New Issue
Block a user