Skip to content

Commit

Permalink
Move api::vga::palette to sys::vga::palette
Browse files Browse the repository at this point in the history
  • Loading branch information
vinc committed Oct 14, 2024
1 parent f94ae91 commit b106cf4
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 8 deletions.
4 changes: 0 additions & 4 deletions src/api/vga/mod.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
pub mod palette;

pub use palette::Palette;

use crate::api::fs;
use crate::usr::shell;

Expand Down
7 changes: 4 additions & 3 deletions src/sys/vga/mod.rs
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
mod color;
mod font;
mod palette;
mod screen;
mod writer;

pub use font::VgaFont;
pub use screen::VgaMode;
use writer::WRITER;
use color::Color;

use crate::api::vga::Palette;
use color::Color;
use palette::Palette;
use writer::WRITER;

use alloc::string::String;
use bit_field::BitField;
Expand Down
1 change: 0 additions & 1 deletion src/api/vga/palette.rs → src/sys/vga/palette.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// TODO: Move this to kernel after removing the `vga set palette` command
pub struct Palette {
pub colors: [(u8, u8, u8); 16],
}
Expand Down

0 comments on commit b106cf4

Please sign in to comment.