mirror of
https://github.com/status-im/nimPNG.git
synced 2025-01-30 14:24:49 +00:00
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…
x
Reference in New Issue
Block a user