mirror of
https://git.checksum.fail/alec/erythros
synced 2025-12-12 05:59:53 +02:00
Meta: Add files to repository
This commit is contained in:
29
Applications/OS/Wallpaper.app/Run.HC
Normal file
29
Applications/OS/Wallpaper.app/Run.HC
Normal file
@@ -0,0 +1,29 @@
|
||||
// Gui.App();
|
||||
|
||||
U0 @event_loop(CTask* task)
|
||||
{
|
||||
Fs->ipc = task->ipc;
|
||||
IpcMessage* msg;
|
||||
while (1) {
|
||||
msg = Ipc.MsgRecv();
|
||||
if (msg) {
|
||||
Free(msg);
|
||||
}
|
||||
Sleep(1);
|
||||
}
|
||||
}
|
||||
|
||||
Ipc.InitQueue(Fs);
|
||||
Spawn(&@event_loop, Fs);
|
||||
|
||||
U0 Main()
|
||||
{
|
||||
System.Log(Fs, "Task running at 0x%08x", Fs);
|
||||
Window* win = Compositor.CreateWindow(0, 0, Display.Width(), Display.Height(),
|
||||
WIN_FLAGS_NO_REINDEX | WIN_FLAGS_SKIP,
|
||||
"Wallpaper");
|
||||
Compositor.SetWallpaper(Compositor.theme.wallpaper);
|
||||
Suspend;
|
||||
}
|
||||
|
||||
Main;
|
||||
Reference in New Issue
Block a user