diff options
| author | Amlal EL Mahrouss <amlalelmahrouss@icloud.com> | 2024-08-26 21:01:10 +0200 |
|---|---|---|
| committer | Amlal EL Mahrouss <amlalelmahrouss@icloud.com> | 2024-08-26 21:01:10 +0200 |
| commit | d5b7989351bc16e6acb436e54298dedba1551223 (patch) | |
| tree | 39ca6b7804804d44d839aebc54ebc61fe8d26e2b /dev/ZKA/Sources | |
| parent | 60cc51ae3bc8de2276a7c7a5f3e7117dc0473c98 (diff) | |
[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 <amlalelmahrouss@icloud.com>
Diffstat (limited to 'dev/ZKA/Sources')
| -rw-r--r-- | dev/ZKA/Sources/DLLMain.cxx | 14 |
1 files changed, 3 insertions, 11 deletions
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; |
