aboutsummaryrefslogtreecommitdiff
path: root/include/smcolor.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'include/smcolor.hpp')
-rw-r--r--include/smcolor.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/smcolor.hpp b/include/smcolor.hpp
index 94ff4f3..a7feb65 100644
--- a/include/smcolor.hpp
+++ b/include/smcolor.hpp
@@ -27,7 +27,7 @@ public:
friend smColorRGBA operator *(smColorRGBA a,float b){return smColorRGBA(b*a.r,b*a.g,b*a.b,b*a.a);}
friend smColorRGBA operator /(smColorRGBA a,float b){return smColorRGBA(a.r/b,a.g/b,a.b/b,a.a/b);}
void setHWColor(DWORD col){a=GETA(col)/255.;r=GETR(col)/255.;g=GETG(col)/255.;b=GETB(col)/255.;}
- DWORD getHWColor(){clamp();return RGBA(r,g,b,a);}
+ DWORD getHWColor(){clamp();return RGBA(r*255.,g*255.,b*255.,a*255.);}
};
class smColorHSVA
{