summaryrefslogtreecommitdiffhomepage
path: root/dev/ZKA/Sources/DLLMain.cxx
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal.elmahrouss@icloud.com>2024-08-24 17:30:52 +0200
committerAmlal El Mahrouss <amlal.elmahrouss@icloud.com>2024-08-24 17:30:52 +0200
commitfdc8aaab2ad3c2f2f3f4bb4ffb71bc2d797366aa (patch)
treeda3e628e1c4862c424a2deebae6966d6fc262592 /dev/ZKA/Sources/DLLMain.cxx
parent30e5aa322bf253cdf48cddf53a1c8a1e9720e705 (diff)
[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 <amlal.elmahrouss@icloud.com>
Diffstat (limited to 'dev/ZKA/Sources/DLLMain.cxx')
-rw-r--r--dev/ZKA/Sources/DLLMain.cxx13
1 files changed, 8 insertions, 5 deletions
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)