mirror of
https://github.com/servo/servo.git
synced 2025-08-05 21:50:18 +01:00
Fix conversion from CSS color to GFX color
This commit is contained in:
parent
beb6ed9f1c
commit
e5a0470042
1 changed files with 1 additions and 1 deletions
|
@ -12,7 +12,7 @@ pub fn rgba(r: u8, g: u8, b: u8, a: float) -> AzColor {
|
|||
r: (r as AzFloat) / (255.0 as AzFloat),
|
||||
g: (g as AzFloat) / (255.0 as AzFloat),
|
||||
b: (b as AzFloat) / (255.0 as AzFloat),
|
||||
a: (a as AzFloat) / (255.0 as AzFloat)
|
||||
a: a as AzFloat
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue