Commit f73b0909 authored by JP Dinger's avatar JP Dinger

Skins2: Move getShifts from const to static.

parent d51a30f1
...@@ -253,8 +253,7 @@ X11Display::~X11Display() ...@@ -253,8 +253,7 @@ X11Display::~X11Display()
} }
void X11Display::getShifts( uint32_t mask, int &rLeftShift, void X11Display::getShifts( uint32_t mask, int &rLeftShift, int &rRightShift )
int &rRightShift ) const
{ {
for( rLeftShift = 0; (rLeftShift < 32) && !(mask & 1); rLeftShift++ ) for( rLeftShift = 0; (rLeftShift < 32) && !(mask & 1); rLeftShift++ )
{ {
......
...@@ -99,8 +99,7 @@ private: ...@@ -99,8 +99,7 @@ private:
type blendPixel(type v,type r, type g, type b,type a) const; type blendPixel(type v,type r, type g, type b,type a) const;
/// Calculate shifts from a color mask /// Calculate shifts from a color mask
void getShifts( uint32_t mask, int &rLeftShift, static void getShifts( uint32_t mask, int &rLeftShift, int &rRightShift );
int &rRightShift ) const;
/// 8 bpp version of blendPixel /// 8 bpp version of blendPixel
void blendPixel8( uint8_t *pPixel, uint8_t r, uint8_t g, uint8_t b, void blendPixel8( uint8_t *pPixel, uint8_t r, uint8_t g, uint8_t b,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment