From f054bab5cc6767b46600c2cfe6acd655108029f7 Mon Sep 17 00:00:00 2001 From: Josh Holtrop Date: Tue, 15 Mar 2022 23:03:28 -0400 Subject: [PATCH] Set bootinfo framebuffer fields --- src/hel/hel.d | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/hel/hel.d b/src/hel/hel.d index 051de08..75503b2 100644 --- a/src/hel/hel.d +++ b/src/hel/hel.d @@ -76,6 +76,11 @@ private bool set_graphics_mode() writeln("SetMode: Error %u\n", status); return false; } + bootinfo.fb.buffer = cast(uint *)gop.Mode.FrameBufferBase; + bootinfo.fb.width = gop.Mode.Info.HorizontalResolution; + bootinfo.fb.height = gop.Mode.Info.VerticalResolution; + bootinfo.fb.stride = gop.Mode.Info.PixelsPerScanLine; + bootinfo.fb.format = gop.Mode.Info.PixelFormat; return true; }