Author: Carlos Lopez <[email protected]>
Date: Sat Jul 21 09:51:13 2012 +0200
CairoColor: fix range as float to do premult and demult operations properly
---
synfig-core/src/synfig/color.h | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/synfig-core/src/synfig/color.h b/synfig-core/src/synfig/color.h
index ea2c87d..1259a3a 100644
--- a/synfig-core/src/synfig/color.h
+++ b/synfig-core/src/synfig/color.h
@@ -583,7 +583,7 @@ private:
public:
static const unsigned char ceil=255;
static const unsigned char floor=0;
- static const unsigned char range=ceil-floor;
+ static const float range=ceil-floor;
static const value_type amask=0xFF<<24;
static const value_type rmask=0xFF<<16;
static const value_type gmask=0xFF<<8;
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Synfig-devl mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/synfig-devl