diff --git a/sysdata/libraries/stn/src/sleep.hb b/sysdata/libraries/stn/src/sleep.hb new file mode 100644 index 0000000..d323267 --- /dev/null +++ b/sysdata/libraries/stn/src/sleep.hb @@ -0,0 +1,6 @@ +subscribe_to_interrupt := fn(interrupt_number: u8): bool { + return false +} +// Pauses execution until the interrupt occures +sleep_until_interrupt := fn(interrupt_number: u8): void { +} \ No newline at end of file diff --git a/sysdata/programs/sunset_server/src/main.hb b/sysdata/programs/sunset_server/src/main.hb index 5a64e66..bc28349 100644 --- a/sysdata/programs/sunset_server/src/main.hb +++ b/sysdata/programs/sunset_server/src/main.hb @@ -71,7 +71,7 @@ main := fn(): int { render.clear(screen, render.black) render.put_surface(screen, wallpaper, .(0, 0), false) - render.put_rect(screen, .(0, 0), .(screen.width - 1, screen.height - 1), render.white) + render.put_rect(screen, .(0, 0), .(screen.width - 1, screen.height - 1), sunset.server.DECO_COLOUR) } if sunset.server.incoming() { @@ -82,13 +82,13 @@ main := fn(): int { { pos := Vec2(uint).(1, screen.height - 21) render_label_to_surface(screen, text_label, font, pos) - render.put_rect(screen, .(0, screen.height - 21), .(screen.width - 1, 20), render.white) + render.put_rect(screen, .(0, screen.height - 21), .(screen.width - 1, 20), sunset.server.DECO_COLOUR) } // Mouse cursor { - render.put_filled_rect(screen, .(mouse_x, mouse_y), .(20, 20), render.black) - render.put_rect(screen, .(mouse_x, mouse_y), .(20, 20), render.white) + render.put_filled_rect(screen, .(mouse_x, mouse_y), .(20, 20), sunset.server.DECO_COLOUR_DARKER) + render.put_rect(screen, .(mouse_x, mouse_y), .(20, 20), sunset.server.DECO_COLOUR) } render.sync(screen)