Browse Source

Make vga_console::Color::new() pub

master
3moon 8 years ago
parent
commit
d5fcb9d8f9
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/arch/x86_64/device/vga_console.rs

+ 1
- 1
src/arch/x86_64/device/vga_console.rs View File

@ -36,7 +36,7 @@ pub enum Color {
#[derive(Clone, Copy, Debug)]
pub struct CharStyle(u8);
impl CharStyle {
const fn new(foreground: Color, background: Color) -> CharStyle {
pub const fn new(foreground: Color, background: Color) -> CharStyle {
CharStyle((background as u8) << 4 | (foreground as u8))
}
}


Loading…
Cancel
Save