fix #42, bad RGBA8 hash proc

This commit is contained in:
andri lim 2020-05-01 10:29:36 +07:00
parent 11bb17bffd
commit a07678fb41
No known key found for this signature in database
GPG Key ID: 31702AE10541E6B9
1 changed files with 1 additions and 0 deletions

View File

@ -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]