We are migrating issue tracker of Cocos2d-x Project to Github, please create new issue there. Thanks.
a little bug about Color4F's constructor
a little bug about Color4F's constructor
Bug #2718 [Closed]
Status: | Closed | |
---|---|---|
Start date: | 2013-08-26 | |
Priority: | Normal | |
Due date: | ||
Assignee: | - | |
% Done: | 100% |
|
Category: | all | |
Target version: | - |
(j1223jesus opened this issue 2 days ago in github)
It’s wrong:
explicit Color4F(const Color3B &color3B)
: r(color3B.r)
, g(color3B.g)
, b(color3B.b)
, a(1.f)
{}
and I think this is right:
explicit Color4F(const Color3B &color3B)
: r(color3B.r / 255.0f)
, g(color3B.g / 255.0f)
, b(color3B.b / 255.0f)
, a(1.f)
{}