make tests green again
This commit is contained in:
parent
ecf1424456
commit
fc7961d4cc
1 changed files with 4 additions and 4 deletions
|
|
@ -24,12 +24,12 @@ template `A=`*(self: TAggRgba8, val: byte) =
|
||||||
|
|
||||||
proc ABGR* (val: int| int64): TAggRgba8 =
|
proc ABGR* (val: int| int64): TAggRgba8 =
|
||||||
var V = val
|
var V = val
|
||||||
result.R = V and 0xFF
|
result.R = byte(V and 0xFF)
|
||||||
V = V shr 8
|
V = V shr 8
|
||||||
result.G = V and 0xFF
|
result.G = byte(V and 0xFF)
|
||||||
V = V shr 8
|
V = V shr 8
|
||||||
result.B = V and 0xFF
|
result.B = byte(V and 0xFF)
|
||||||
result.A = (V shr 8) and 0xFF
|
result.A = byte((V shr 8) and 0xFF)
|
||||||
|
|
||||||
const
|
const
|
||||||
c1 = ABGR(0xFF007F7F)
|
c1 = ABGR(0xFF007F7F)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue