(size: Size, point: Point)
| 31 | |
| 32 | impl Display { |
| 33 | pub fn new(size: Size, point: Point) -> Self { |
| 34 | let fb_ptr = framebuffer() as *mut u8; |
| 35 | println!( |
| 36 | "Hello world from user mode program! 0x{:X} , len {}", |
| 37 | fb_ptr as usize, VIRTGPU_LEN |
| 38 | ); |
| 39 | let fb = |
| 40 | unsafe { core::slice::from_raw_parts_mut(fb_ptr as *mut u8, VIRTGPU_LEN as usize) }; |
| 41 | Self { size, point, fb } |
| 42 | } |
| 43 | } |
| 44 | |
| 45 | impl OriginDimensions for Display { |
nothing calls this directly
no test coverage detected