setup framebuffer with console
This commit is contained in:
+4
-4
@@ -25,10 +25,10 @@ pub const PixelFormat = enum(u32) {
|
||||
/// `pitch` bytes between the start of one row and the next (which may be larger
|
||||
/// than `width * 4` due to hardware padding).
|
||||
pub const Framebuffer = extern struct {
|
||||
base: usize,
|
||||
width: u32,
|
||||
height: u32,
|
||||
pitch: u32,
|
||||
base: usize, // the memory address where pixel data starts
|
||||
width: u32, // visible pixels per row (e.g. 1920)
|
||||
height: u32, // visible rows (e.g. 1080)
|
||||
pitch: u32, // bytes from the start of one row to the start of the next
|
||||
format: PixelFormat,
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user