forked from AbleOS/ableos
fixed order of ops bug
This commit is contained in:
parent
84865e8248
commit
230c6d74b2
|
@ -2,14 +2,14 @@ use vga::colors::Color16;
|
||||||
pub type Rgba64 = u64;
|
pub type Rgba64 = u64;
|
||||||
|
|
||||||
pub fn get_r(rgba: Rgba64) -> u8 {
|
pub fn get_r(rgba: Rgba64) -> u8 {
|
||||||
(rgba & 0xff_00_00_00 >> 0o30) as u8
|
((rgba & 0xff_00_00_00) >> 0o30) as u8
|
||||||
}
|
}
|
||||||
pub fn get_g(rgba: Rgba64) -> u8 {
|
pub fn get_g(rgba: Rgba64) -> u8 {
|
||||||
(rgba & 0xff_00_00 >> 0o20) as u8
|
((rgba & 0xff_00_00) >> 0o20) as u8
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn get_b(rgba: Rgba64) -> u8 {
|
pub fn get_b(rgba: Rgba64) -> u8 {
|
||||||
(rgba & 0xff_00 >> 0o10) as u8
|
((rgba & 0xff_00) >> 0o10) as u8
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn get_a(rgba: Rgba64) -> u8 {
|
pub fn get_a(rgba: Rgba64) -> u8 {
|
||||||
|
|
Loading…
Reference in a new issue