Skip to content

Commit

Permalink
Add missing parameters for AlphaColorValue conversions
Browse files Browse the repository at this point in the history
  • Loading branch information
timholy committed Oct 8, 2014
1 parent dcfc38f commit 034db53
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/conversions.jl
Original file line number Diff line number Diff line change
Expand Up @@ -686,10 +686,10 @@ convert(::Type{Uint32}, ac::ARGB32) = ac.color

convert{C,T}(::Type{AlphaColorValue{C,T}}, c::AlphaColorValue{C,T}) = c
function convert{C,T,D,U}(::Type{AlphaColorValue{C,T}}, c::AbstractAlphaColorValue{D,U})
AlphaColorValue{T}(convert(C, c.c), c.alpha)
AlphaColorValue{C,T}(convert(C, c.c), c.alpha)
end
convert{C,T}(::Type{AlphaColorValue{C,T}}, c::ColorValue) =
AlphaColorValue(convert(C, c), one(T))
AlphaColorValue{C,T}(convert(C, c), one(T))

convert(::Type{ARGB32}, c::ARGB32) = c
convert{CV<:AbstractRGB{Ufixed8}}(::Type{ARGB32}, c::AbstractAlphaColorValue{CV,Ufixed8}) =
Expand Down

0 comments on commit 034db53

Please sign in to comment.