Paul Cornett
70ef1e192d
Index: src/generic/graphicc.cpp
===================================================================
--- src/generic/graphicc.cpp (revision 76007)
+++ src/generic/graphicc.cpp (working copy)
@@ -1569,12 +1569,13 @@
{
const wxUint32 argb = *src++;
- *alpha++ = (argb & 0xff000000) >> 24;
+ const unsigned char a = argb >> 24;
+ *alpha++ = a;
// Copy the RGB data undoing the pre-multiplication.
- *dst++ = Unpremultiply(*alpha, (argb & 0x00ff0000) >> 16);
- *dst++ = Unpremultiply(*alpha, (argb & 0x0000ff00) >> 8);
- *dst++ = Unpremultiply(*alpha, (argb & 0x000000ff));
+ *dst++ = Unpremultiply(a, argb >> 16);
+ *dst++ = Unpremultiply(a, argb >> 8);
+ *dst++ = Unpremultiply(a, argb);
}
src = rowStart + stride;
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@76015 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2014-02-25 17:38:34 +00:00
..
2014-02-24 01:00:24 +00:00
2013-09-17 15:25:59 +00:00
2014-02-22 22:40:03 +00:00
2014-01-06 12:42:37 +00:00
2013-07-26 16:02:46 +00:00
2014-02-25 17:38:34 +00:00
2014-02-24 06:44:49 +00:00
2014-01-06 12:42:37 +00:00
2014-02-17 23:53:20 +00:00
2013-07-13 23:23:19 +00:00
2013-12-31 14:03:34 +00:00
2013-07-26 16:02:46 +00:00
2014-02-25 17:26:48 +00:00
2014-01-06 12:42:37 +00:00
2014-02-24 08:17:15 +00:00
2013-07-07 17:44:15 +00:00
2014-02-22 14:54:54 +00:00
2013-07-26 16:02:46 +00:00
2014-02-21 00:51:58 +00:00
2014-02-17 23:53:01 +00:00
2014-02-22 14:54:39 +00:00
2013-07-26 16:02:46 +00:00
2013-11-12 18:06:37 +00:00
2014-02-08 00:46:54 +00:00
2014-01-06 12:42:37 +00:00
2013-09-16 15:47:27 +00:00
2014-02-22 22:39:56 +00:00
2013-10-01 16:08:25 +00:00