File tree Expand file tree Collapse file tree 4 files changed +14
-11
lines changed Expand file tree Collapse file tree 4 files changed +14
-11
lines changed Original file line number Diff line number Diff line change 1- [ ![ GitHub stars] ( https://img.shields.io/github/stars/roeegg2 /funderberker.svg )] ( https://github.com/funderberker-org/funderberker/stargazers )
1+ [ ![ GitHub stars] ( https://img.shields.io/github/stars/funderberker-org /funderberker.svg )] ( https://github.com/funderberker-org/funderberker/stargazers )
22[ ![ License] ( https://img.shields.io/badge/License-GPLv3-blue.svg )] ( https://www.gnu.org/licenses/gpl-3.0 )
33![ CI Status] ( https://img.shields.io/github/actions/workflow/status/funderberker-org/funderberker/ci.yaml?logo=github )
44
Original file line number Diff line number Diff line change @@ -67,7 +67,7 @@ unsafe extern "C" fn kmain() -> ! {
6767 . unwrap ( )
6868 . framebuffers ( )
6969 . next ( )
70- . as_ref ( ) ,
70+ . unwrap ( ) ,
7171 ) ;
7272
7373 let hhdm = HHDM_REQUEST
Original file line number Diff line number Diff line change @@ -377,12 +377,15 @@ impl FramebufferWriter {
377377
378378#[ inline]
379379#[ cfg( feature = "limine" ) ]
380- pub unsafe fn init_framebuffer_from_limine ( fb : & Framebuffer < ' static > ) {
381- FRAMEBUFFER_WRITER = FramebufferWriter :: new (
382- fb. buffer . as_mut_ptr ( ) ,
383- fb. width ,
384- fb. height ,
385- fb. pitch ,
386- fb. bpp ,
387- ) ;
380+ pub fn init_from_limine ( fb : Framebuffer < ' static > ) {
381+ #[ allow( static_mut_refs) ]
382+ unsafe {
383+ FRAMEBUFFER_WRITER = FramebufferWriter :: new (
384+ fb. addr ( ) . cast ( ) ,
385+ fb. width ( ) ,
386+ fb. height ( ) ,
387+ fb. pitch ( ) ,
388+ fb. bpp ( ) ,
389+ ) ;
390+ }
388391}
Original file line number Diff line number Diff line change @@ -68,7 +68,7 @@ impl Write for Writer {
6868 #[ cfg( feature = "framebuffer" ) ]
6969 #[ allow( static_mut_refs) ]
7070 unsafe {
71- framebuffer:: FRAMEBUFFER_WRITER . draw_char ( * byte) . unwrap ( ) ;
71+ framebuffer:: FRAMEBUFFER_WRITER . draw_char ( byte) . unwrap ( ) ;
7272 } ;
7373 }
7474
You can’t perform that action at this time.
0 commit comments