mirror of
https://github.com/italicsjenga/gba.git
synced 2024-12-23 19:01:30 +11:00
fix color constructor, part of https://github.com/rust-console/gba/issues/129
This commit is contained in:
parent
12823a8b58
commit
6e6f4be709
|
@ -14,6 +14,6 @@ impl Color {
|
|||
let r = red as u16;
|
||||
let g = green as u16;
|
||||
let b = blue as u16;
|
||||
Self(b << 10 | g << 15 | r)
|
||||
Self(b << 10 | g << 5 | r)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue