graphics/vesad: Make some fields and methods private

This commit is contained in:
bjorn3
2025-03-01 18:23:16 +01:00
parent 91f814a42c
commit 68af18aead
+3 -3
View File
@@ -64,13 +64,13 @@ impl GraphicsAdapter for FbAdapter {
}
pub struct GraphicScreen {
pub width: usize,
pub height: usize,
width: usize,
height: usize,
ptr: NonNull<[u32]>,
}
impl GraphicScreen {
pub fn new(width: usize, height: usize) -> GraphicScreen {
fn new(width: usize, height: usize) -> GraphicScreen {
let len = width * height;
let layout = Self::layout(len);
let ptr = unsafe { alloc::alloc_zeroed(layout) };