From 6169edf1e8edf79408ad8b3a7494c77878b21390 Mon Sep 17 00:00:00 2001 From: EnderIce2 Date: Sun, 25 Feb 2024 22:50:22 +0200 Subject: [PATCH] Add minimum resolution check for display --- kernel.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/kernel.cpp b/kernel.cpp index a85d3939..22ae66d5 100644 --- a/kernel.cpp +++ b/kernel.cpp @@ -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());