Fix deprecation.

This commit is contained in:
Andrew Palugniok 2018-01-13 16:18:08 +00:00
parent c21f3810b9
commit 27e2795576

View File

@ -1200,7 +1200,7 @@ function gr_display(sp::Subplot{GRBackend}, w, h, viewport_canvas)
z = transpose_z(series, series[:z].surf, true)'
w, h = size(z)
if eltype(z) <: Colors.AbstractGray
grey = round(UInt8, float(z) * 255)
grey = round.(UInt8, float(z) * 255)
rgba = map(c -> UInt32( 0xff000000 + Int(c)<<16 + Int(c)<<8 + Int(c) ), grey)
else
rgba = map(c -> UInt32( round(Int, alpha(c) * 255) << 24 +