mirror of
https://github.com/Fennix-Project/Kernel.git
synced 2025-07-11 15:29:18 +00:00
Rewrote GUI implementation
This commit is contained in:
@ -35,9 +35,13 @@ namespace Recovery
|
||||
auxv.push_back({.archaux = {.a_type = AT_NULL, .a_un = {.a_val = 0}}});
|
||||
// TaskManager->CreateThread(proc, (IP)RecoveryThreadWrapper, nullptr, nullptr, auxv);
|
||||
TCB *guiThread = TaskManager->CreateThread(TaskManager->GetCurrentProcess(), (IP)GUIWrapper, nullptr, nullptr, auxv);
|
||||
guiThread->Rename("GUI Thread");
|
||||
guiThread->SetPriority(100);
|
||||
Window *win = new Window(gui, 50, 50, 400, 250, "Recovery");
|
||||
Window *win = new Window(gui, {50, 50, 400, 250}, "Recovery");
|
||||
WidgetCollection *wdg = new WidgetCollection(nullptr);
|
||||
wdg->CreatePanel(0, Display->GetBuffer(0)->Height - 25, Display->GetBuffer(0)->Width, 25);
|
||||
gui->AddWindow(win);
|
||||
win->AddWidget(wdg);
|
||||
}
|
||||
|
||||
KernelRecovery::~KernelRecovery()
|
||||
|
Reference in New Issue
Block a user