From d5b7989351bc16e6acb436e54298dedba1551223 Mon Sep 17 00:00:00 2001 From: Amlal EL Mahrouss Date: Mon, 26 Aug 2024 21:01:10 +0200 Subject: [IMP] New Loading console when loading kernel and it's drivers. [IMP] Concept of parents and children inside a CG window. Signed-off-by: Amlal EL Mahrouss --- dev/ZKA/Sources/DLLMain.cxx | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) (limited to 'dev/ZKA/Sources') diff --git a/dev/ZKA/Sources/DLLMain.cxx b/dev/ZKA/Sources/DLLMain.cxx index bfa206a5..54254f73 100644 --- a/dev/ZKA/Sources/DLLMain.cxx +++ b/dev/ZKA/Sources/DLLMain.cxx @@ -194,7 +194,7 @@ EXTERN_C Kernel::Void ke_dll_entrypoint(Kernel::Void) CGFini(); - auto root_zka_wnd = CG::CGCreateWindow(CG::cWndFlagWindow, "ZKA Setup", "Window", 0, 0, 512, 256); + auto root_zka_wnd = CG::CGCreateWindow(CG::cWndFlagWindow, "ZKA Operating System", "Window", 20, 20, CG::UIAccessibilty::The().Height() - 20, CG::UIAccessibilty::The().Width() - 20); root_zka_wnd->w_sub_type = CG::cWndFlagCloseControlSelect; root_zka_wnd->w_x = 10; @@ -202,19 +202,11 @@ EXTERN_C Kernel::Void ke_dll_entrypoint(Kernel::Void) 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. - auto root_install_wnd = CG::CGCreateWindow(CG::cWndFlagButtonSelect, "Install Now.", "Button", 0, 0, 128, 32); - - root_install_wnd->w_x = 512 - 128; - root_install_wnd->w_y = 256 - 32; - - root_install_wnd->w_needs_repaint = Yes; - - CG::CGDrawWindowList(&root_zka_wnd, 1); - CG::CGDrawWindowList(&root_install_wnd, 1); - /// @note BThread doesn't parse the symbols so doesn't nullify them, .bss is though. Kernel::cProcessScheduler = nullptr; -- cgit v1.2.3