Rewrote GUI implementation

This commit is contained in:
Alex
2022-12-29 08:05:30 +02:00
parent 5774ceb9e1
commit 7e0b387e69
8 changed files with 1115 additions and 696 deletions

View File

@ -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()