mirror of https://github.com/status-im/nimPNG.git
fix #42, bad RGBA8 hash proc
This commit is contained in:
parent
11bb17bffd
commit
a07678fb41
|
@ -1279,6 +1279,7 @@ proc hash*(c: RGBA8): Hash =
|
|||
h = h !& ord(c.g)
|
||||
h = h !& ord(c.b)
|
||||
h = h !& ord(c.a)
|
||||
result = !$(h)
|
||||
|
||||
proc RGBA8FromGrey8[T](p: var RGBA8, input: openArray[T], px: int, mode: PNGColorMode) =
|
||||
p.r = input[px]
|
||||
|
|
Loading…
Reference in New Issue