mirror of
https://github.com/Fennix-Project/Kernel.git
synced 2025-05-28 15:34:33 +00:00
Show info about the framebuffer on screen
This commit is contained in:
parent
840b49abd0
commit
6094c966b2
14
Kernel.cpp
14
Kernel.cpp
@ -284,6 +284,9 @@ EXTERNC NIF void Main()
|
||||
KPrint("CPU: \e058C19%s \e8822AA%s \e8888FF%s",
|
||||
CPU::Hypervisor(), CPU::Vendor(), CPU::Name());
|
||||
|
||||
if (Display->GetFramebufferStruct().BitsPerPixel != 32)
|
||||
KPrint("\eFF5500Framebuffer is not 32 bpp. This may cause issues.");
|
||||
|
||||
debug("CPU: %s %s %s",
|
||||
CPU::Hypervisor(), CPU::Vendor(), CPU::Name());
|
||||
|
||||
@ -320,6 +323,17 @@ EXTERNC NIF void Main()
|
||||
|
||||
if (com4 != 0xFF)
|
||||
KPrint("COM4 is present.");
|
||||
|
||||
KPrint("Display: %dx%d %d bpp \eFF0000R:%d %d \e00FF00G: %d %d \e0000FFB: %d %d",
|
||||
Display->GetFramebufferStruct().Width,
|
||||
Display->GetFramebufferStruct().Height,
|
||||
Display->GetFramebufferStruct().BitsPerPixel,
|
||||
Display->GetFramebufferStruct().RedMaskSize,
|
||||
Display->GetFramebufferStruct().RedMaskShift,
|
||||
Display->GetFramebufferStruct().GreenMaskSize,
|
||||
Display->GetFramebufferStruct().GreenMaskShift,
|
||||
Display->GetFramebufferStruct().BlueMaskSize,
|
||||
Display->GetFramebufferStruct().BlueMaskShift);
|
||||
#endif
|
||||
|
||||
/**************************************************************************************/
|
||||
|
Loading…
x
Reference in New Issue
Block a user