Merge branch 'master' of ssh://git.ablecorp.us:20/able/ableos

master
Able 2022-02-03 21:37:56 -06:00
commit 25ec62c7d1
Signed by untrusted user: able
GPG Key ID: D164AF5F5700BE51
1 changed files with 3 additions and 3 deletions

View File

@ -2,14 +2,14 @@ use vga::colors::Color16;
pub type Rgba64 = u64;
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 {
(rgba & 0xff_00_00 >> 0o20) as u8
((rgba & 0xff_00_00) >> 0o20) as 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 {