Skip to content
This repository has been archived by the owner on Mar 30, 2019. It is now read-only.

SharpDX.Color has a bad cast to Color3 #154

Closed
dbollish opened this issue Sep 6, 2013 · 1 comment
Closed

SharpDX.Color has a bad cast to Color3 #154

dbollish opened this issue Sep 6, 2013 · 1 comment

Comments

@dbollish
Copy link

dbollish commented Sep 6, 2013

Existing code in SharpDX v2.5
public static explicit operator Color3(Color value)
{
return new Color3(value.R, value.G, value.B);
}

Should delegate to ToColor3() as it properly converts the Color components to float.

Should be:
public static explicit operator Color3(Color value)
{
return value.ToColor3();
}

@ArtiomCiumac
Copy link
Contributor

Thanks for report. This is now fixed.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants