mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-31 17:31:20 +02:00
CProgressBarCache: declare funtions pbcPaint(), pbcPaintBoxRel() as const
Technically these members can be const.
This commit is contained in:
@@ -145,7 +145,7 @@ class CProgressBarCache
|
|||||||
|
|
||||||
static inline unsigned int make16color(__u32 rgb){return 0xFF000000 | rgb;};
|
static inline unsigned int make16color(__u32 rgb){return 0xFF000000 | rgb;};
|
||||||
|
|
||||||
void pbcPaintBoxRel(int x, int y, int dx, int dy, fb_pixel_t *pixbuf, fb_pixel_t col);
|
void pbcPaintBoxRel(int x, int y, int dx, int dy, fb_pixel_t *pixbuf, fb_pixel_t col) const;
|
||||||
void pbcApplyGradient(fb_pixel_t *pixbuf);
|
void pbcApplyGradient(fb_pixel_t *pixbuf);
|
||||||
void pbcCreateBitmaps();
|
void pbcCreateBitmaps();
|
||||||
|
|
||||||
@@ -177,7 +177,7 @@ class CProgressBarCache
|
|||||||
}
|
}
|
||||||
void pbcClear();
|
void pbcClear();
|
||||||
public:
|
public:
|
||||||
void pbcPaint(int x, int y, int pbc_active_width, int pbc_passive_width);
|
void pbcPaint(int x, int y, int pbc_active_width, int pbc_passive_width) const;
|
||||||
static CProgressBarCache *pbcLookup( int dy,
|
static CProgressBarCache *pbcLookup( int dy,
|
||||||
int dx,
|
int dx,
|
||||||
int active_col,
|
int active_col,
|
||||||
@@ -222,7 +222,7 @@ CProgressBarCache *CProgressBarCache::pbcLookup(int dy, int dx, int active_col,
|
|||||||
return pbc;
|
return pbc;
|
||||||
}
|
}
|
||||||
|
|
||||||
void CProgressBarCache::pbcPaint(int x, int y, int pbc_active_width, int pbc_passive_width)
|
void CProgressBarCache::pbcPaint(int x, int y, int pbc_active_width, int pbc_passive_width) const
|
||||||
{
|
{
|
||||||
y += yoff;
|
y += yoff;
|
||||||
static CFrameBuffer *frameBuffer = CFrameBuffer::getInstance();
|
static CFrameBuffer *frameBuffer = CFrameBuffer::getInstance();
|
||||||
@@ -249,7 +249,7 @@ void CProgressBarCache::pbcPaint(int x, int y, int pbc_active_width, int pbc_pas
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void CProgressBarCache::pbcPaintBoxRel(int x, int y, int dx, int dy, fb_pixel_t *pixbuf, fb_pixel_t col)
|
void CProgressBarCache::pbcPaintBoxRel(int x, int y, int dx, int dy, fb_pixel_t *pixbuf, fb_pixel_t col) const
|
||||||
{
|
{
|
||||||
if (x < 0) {
|
if (x < 0) {
|
||||||
dx -= x;
|
dx -= x;
|
||||||
|
Reference in New Issue
Block a user