Projects > cpp > Issues > Bug #2718

We are migrating issue tracker of Cocos2d-x Project to Github, please create new issue there. Thanks.

Create Issue on Github

a little bug about Color4F's constructor

Bug #2718 [Closed]
godyZ 2013-08-26 02:00 . Updated almost 3 years ago

(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)
{}

WenHai 2014-01-08 09:26
  • Status changed from New to Closed
  • % Done changed from 0 to 100

It has been fixed.

zhangxm 2014-01-09 06:01
  • Target version deleted (Candidate)

Atom PDF

Status:Closed
Start date:2013-08-26
Priority:Normal
Due date:
Assignee:-
% Done:

100%

Category:all
Target version:-

Sign up for our newsletter to keep up with the latest developments, releases and updates for Cocos2d-x.