diff options
| author | Amlal El Mahrouss <amlalelmahrouss@icloud.com> | 2024-02-24 18:42:41 +0100 |
|---|---|---|
| committer | Amlal El Mahrouss <amlalelmahrouss@icloud.com> | 2024-02-24 18:43:09 +0100 |
| commit | 27e0af3ecfe0be226f88837634111299121e5ddb (patch) | |
| tree | c6db44321fa7af03acd040772f9220c1827ceb25 /Private/Source | |
| parent | a481180f3bcb979fecdced3851506bf572327fcf (diff) | |
Drivers and Rsrc: Adding PS/2 support, add DrawResource macro.
Signed-off-by: Amlal El Mahrouss <amlalelmahrouss@icloud.com>
Diffstat (limited to 'Private/Source')
| -rw-r--r-- | Private/Source/KernelMain.cxx | 38 |
1 files changed, 3 insertions, 35 deletions
diff --git a/Private/Source/KernelMain.cxx b/Private/Source/KernelMain.cxx index 1b2698c4..cfd27748 100644 --- a/Private/Source/KernelMain.cxx +++ b/Private/Source/KernelMain.cxx @@ -13,6 +13,7 @@ #include <KernelKit/Framebuffer.hpp> #include <KernelKit/PEFCodeManager.hxx> #include <KernelKit/Rsrc/HCore.hxx> +#include <KernelKit/Rsrc/Util.hxx> #include <NewKit/Json.hpp> #include <NewKit/KernelHeap.hpp> #include <NewKit/UserHeap.hpp> @@ -48,48 +49,15 @@ EXTERN_C void RuntimeMain( ** This draws the background. */ - for (HCore::SizeT i = 0ul; i < HandoverHeader->f_GOP.f_Width; ++i) { - for (HCore::SizeT u = 0ul; u < HandoverHeader->f_GOP.f_Height; ++u) { - *(((volatile HCore::UInt32*)(HandoverHeader->f_GOP.f_The + - 4 * HandoverHeader->f_GOP.f_PixelPerLine * - i + - 4 * u))) = RGB(20, 20, 20); - } - } + DrawResource(HCoreLogo, HandoverHeader, HCORELOGO_WIDTH, HCORELOGO_HEIGHT, + 10, 10); /** ** This draws the HCore resource icon.. */ - HCore::SizeT uA = 0; - - for (HCore::SizeT i = 10ul; i < HCORELOGO_WIDTH + 10; ++i) { - for (HCore::SizeT u = 10ul; u < HCORELOGO_HEIGHT + 10; ++u) { - if (HCoreLogo[uA] == 0) { - *(((volatile HCore::UInt32*)(HandoverHeader->f_GOP.f_The + - 4 * - HandoverHeader->f_GOP - .f_PixelPerLine * - i + - 4 * u))) |= HCoreLogo[uA]; - } else { - *(((volatile HCore::UInt32*)(HandoverHeader->f_GOP.f_The + - 4 * - HandoverHeader->f_GOP - .f_PixelPerLine * - i + - 4 * u))) = HCoreLogo[uA]; - } - - ++uA; - } - } - /** This mounts the NewFS drive. */ - - HCore::kcout << "HCoreKrnl: Setup is starting...\n"; - HCore::kcout << "HCoreKrnl: Mounting drive A: ...\n"; } } |
