make tests green again
This commit is contained in:
parent
00898dae7a
commit
3174cfe55c
6 changed files with 14 additions and 13 deletions
|
|
@ -22,14 +22,14 @@ template `B=`*(self: TAggRgba8, val: byte) =
|
|||
template `A=`*(self: TAggRgba8, val: byte) =
|
||||
self[3] = val
|
||||
|
||||
proc ABGR* (val: int| int64): TAggRgba8 =
|
||||
proc ABGR*(val: int| int64): TAggRgba8 =
|
||||
var V = val
|
||||
result.R = V and 0xFF
|
||||
result.R = byte(V and 0xFF)
|
||||
V = V shr 8
|
||||
result.G = V and 0xFF
|
||||
result.G = byte(V and 0xFF)
|
||||
V = V shr 8
|
||||
result.B = V and 0xFF
|
||||
result.A = (V shr 8) and 0xFF
|
||||
result.B = byte(V and 0xFF)
|
||||
result.A = byte((V shr 8) and 0xFF)
|
||||
|
||||
const
|
||||
c1 = ABGR(0xFF007F7F)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue