summaryrefslogtreecommitdiffhomepage
path: root/dev/ZKA/Sources/DLLMain.cxx
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal.elmahrouss@icloud.com>2024-08-24 10:47:51 +0200
committerAmlal El Mahrouss <amlal.elmahrouss@icloud.com>2024-08-24 10:52:24 +0200
commitae87ff9f949a71a398b4355fe9074c0531de34ba (patch)
tree9ea55b396abbfcc699edcc9afb9a964145236129 /dev/ZKA/Sources/DLLMain.cxx
parent4185fcc698e237225902646736c6b23f6b5e54be (diff)
[IMP] CoreCG's User Interface Kit, this is a driver/kernel library only.
+ Reserved for pre-boot/boot operations, before user mode jump. 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.cxx22
1 files changed, 22 insertions, 0 deletions
diff --git a/dev/ZKA/Sources/DLLMain.cxx b/dev/ZKA/Sources/DLLMain.cxx
index edfc804f..16e7a82a 100644
--- a/dev/ZKA/Sources/DLLMain.cxx
+++ b/dev/ZKA/Sources/DLLMain.cxx
@@ -23,6 +23,7 @@
#include <NewKit/Utils.hxx>
#include <KernelKit/CodeManager.hxx>
#include <CFKit/Property.hxx>
+#include <Modules/CoreCG/WindowRenderer.hxx>
EXTERN Kernel::Property cKernelVersion;
@@ -184,6 +185,27 @@ namespace Kernel::Detail
/// @return Void
EXTERN_C Kernel::Void KeMain(Kernel::Void)
{
+
+ CGInit();
+
+ CGDrawInRegion(CGColor(0x45, 0x00, 0x06), CG::UIAccessibilty::The().Height(), CG::UIAccessibilty::The().Width(),
+ 0, 0);
+
+ CGFini();
+
+ auto root_zka_wnd = CG::CGCreateWindow(0, "ZKA System", "Window", 0, 0, 512, 214);
+
+ root_zka_wnd->w_x = 10;
+ 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.
+
+ while (Yes)
+ {
+ }
}