Add minimum resolution check for display

This commit is contained in:
EnderIce2 2024-02-25 22:50:22 +02:00
parent 3eb25c8e14
commit 6169edf1e8
Signed by untrusted user who does not match committer: enderice2
GPG Key ID: EACC3AD603BAB4DD

View File

@ -130,6 +130,12 @@ EXTERNC NIF void Main()
if (Display->GetFramebufferStruct().BitsPerPixel != 32)
KPrint("\eFF5500Framebuffer is not 32 bpp. This may cause issues.");
if (Display->GetWidth < 640 || Display->GetHeight < 480)
{
KPrint("\eFF5500Minimum supported resolution is 640x480!");
KPrint("\eFF5500Some elements may not be displayed correctly.");
}
debug("CPU: %s %s %s",
CPU::Hypervisor(), CPU::Vendor(), CPU::Name());