"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "xbmc/utils/ColorUtils.cpp" between
xbmc-18.7.1-Leia.tar.gz and xbmc-18.8-Leia.tar.gz

About: XBMC is a software media player and entertainment hub for digital media that plays almost all popular audio and video formats around (new name "Kodi").

ColorUtils.cpp  (xbmc-18.7.1-Leia):ColorUtils.cpp  (xbmc-18.8-Leia)
skipping to change at line 16 skipping to change at line 16
* See LICENSES/README.md for more information. * See LICENSES/README.md for more information.
*/ */
#include "Color.h" #include "Color.h"
#include "ColorUtils.h" #include "ColorUtils.h"
#include "math.h" #include "math.h"
UTILS::Color ColorUtils::ChangeOpacity(const UTILS::Color color, const float opa city) UTILS::Color ColorUtils::ChangeOpacity(const UTILS::Color color, const float opa city)
{ {
int newAlpha = ceil( ((color >> 24) & 0xff) * opacity); int newAlpha = ceil( ((color >> 24) & 0xff) * opacity);
return color + (newAlpha << 24); return (color & 0x00FFFFFF) | (newAlpha << 24);
}; };
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)