]> git.sesse.net Git - vlc/commitdiff
Skins2: Move getShifts from const to static.
authorJP Dinger <jpd@videolan.org>
Sat, 21 Nov 2009 14:26:52 +0000 (15:26 +0100)
committerJP Dinger <jpd@videolan.org>
Sat, 5 Dec 2009 21:25:42 +0000 (22:25 +0100)
modules/gui/skins2/x11/x11_display.cpp
modules/gui/skins2/x11/x11_display.hpp

index 8fc362f7e43ff10dbec27e756613c3d2da33d6bd..9a6f43265b2b142320c562cac0114c6337159a70 100644 (file)
@@ -253,8 +253,7 @@ X11Display::~X11Display()
 }
 
 
-void X11Display::getShifts( uint32_t mask, int &rLeftShift,
-                            int &rRightShift ) const
+void X11Display::getShifts( uint32_t mask, int &rLeftShift, int &rRightShift )
 {
     for( rLeftShift = 0; (rLeftShift < 32) && !(mask & 1); rLeftShift++ )
     {
index 6d7eaaa2bb0ec24414deb03931a515c5aba53404..be297eed66ea5e42047a415120bafd5791c4d49d 100644 (file)
@@ -99,8 +99,7 @@ private:
     type blendPixel(type v,type r, type g, type b,type a) const;
 
     /// Calculate shifts from a color mask
-    void getShifts( uint32_t mask, int &rLeftShift,
-                    int &rRightShift ) const;
+    static void getShifts( uint32_t mask, int &rLeftShift, int &rRightShift );
 
     /// 8 bpp version of blendPixel
     void blendPixel8( uint8_t *pPixel, uint8_t r, uint8_t g, uint8_t b,