From fdc8aaab2ad3c2f2f3f4bb4ffb71bc2d797366aa Mon Sep 17 00:00:00 2001 From: Amlal El Mahrouss Date: Sat, 24 Aug 2024 17:30:52 +0200 Subject: [IMP] Better kernel design. + If the process has a parent, and it's exited, that means that the thread must go down as well. Signed-off-by: Amlal El Mahrouss --- dev/ZKA/Sources/DLLMain.cxx | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) (limited to 'dev/ZKA/Sources/DLLMain.cxx') diff --git a/dev/ZKA/Sources/DLLMain.cxx b/dev/ZKA/Sources/DLLMain.cxx index f8c59a53..cecf7347 100644 --- a/dev/ZKA/Sources/DLLMain.cxx +++ b/dev/ZKA/Sources/DLLMain.cxx @@ -183,12 +183,11 @@ namespace Kernel::Detail /// @brief Application entrypoint. /// @param Void /// @return Void -EXTERN_C Kernel::Void KeMain(Kernel::Void) +EXTERN_C Kernel::Void ke_dll_entrypoint(Kernel::Void) { + CGInit(); - CGInit(); - - CGDrawInRegion(CGColor(0x45, 0x00, 0x06), CG::UIAccessibilty::The().Height(), CG::UIAccessibilty::The().Width(), + CGDrawInRegion(CGColor(0x45, 0x00, 0x06), CG::UIAccessibilty::The().Height(), CG::UIAccessibilty::The().Width(), 0, 0); CGFini(); @@ -199,7 +198,6 @@ EXTERN_C Kernel::Void KeMain(Kernel::Void) root_zka_wnd->w_y = 10; root_zka_wnd->w_needs_repaint = Yes; - CG::CGDrawWindowList(&root_zka_wnd, 1); /// Now run kernel loop, until no process are running. Kernel::Detail::FilesystemInstaller(); // automatic filesystem creation. @@ -213,6 +211,11 @@ EXTERN_C Kernel::Void KeMain(Kernel::Void) CG::UI_WINDOW_STRUCT* arr[] = {root_zka_wnd, root_install_wnd}; + CGDrawInRegion(CGColor(0x45, 0x00, 0x06), CG::UIAccessibilty::The().Height(), CG::UIAccessibilty::The().Width(), + 0, 0); + + CGFini(); + CG::CGDrawWindowList(arr, 2); while (Yes) -- cgit v1.2.3