diff options
| author | Lauri Kasanen <cand@gmx.com> | 2015-03-16 18:36:01 +0000 |
|---|---|---|
| committer | Lauri Kasanen <cand@gmx.com> | 2015-03-16 18:36:01 +0000 |
| commit | 966e553ebafc5e009a0132019dc45a53e81f586f (patch) | |
| tree | f2babed1de41d550c52aabe11688e7909b272d0e /src | |
| parent | 70d6d20e110e5ac91954e318fa52e59a1f297eb2 (diff) | |
Fix a failure in the U64 optimized argb path.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10631 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src')
| -rw-r--r-- | src/fl_draw_image.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fl_draw_image.cxx b/src/fl_draw_image.cxx index 2562e473e..8c17f010f 100644 --- a/src/fl_draw_image.cxx +++ b/src/fl_draw_image.cxx @@ -317,7 +317,7 @@ static void xrgb_converter(const uchar *from, uchar *to, int w, int delta) { } static void argb_premul_converter(const uchar *from, uchar *to, int w, int delta) { - INNARDS32((from[3] << 24) + + INNARDS32((unsigned(from[3]) << 24) + (((from[0] * from[3]) / 255) << 16) + (((from[1] * from[3]) / 255) << 8) + ((from[2] * from[3]) / 255)); |
