summaryrefslogtreecommitdiff
path: root/applications/init/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'applications/init/main.cpp')
-rw-r--r--applications/init/main.cpp11
1 files changed, 5 insertions, 6 deletions
diff --git a/applications/init/main.cpp b/applications/init/main.cpp
index e0019b5..1a39513 100644
--- a/applications/init/main.cpp
+++ b/applications/init/main.cpp
@@ -1,7 +1,7 @@
-#include <mercury/syscall.hpp>
+#include <hilbert/syscall.hpp>
-using mercury::syscall::encoded_color;
-using mercury::syscall::color;
+using hilbert::syscall::encoded_color;
+using hilbert::syscall::color;
encoded_color *fb;
uint32_t fb_width;
@@ -10,7 +10,7 @@ uint32_t fb_pitch;
int main(int, char **) {
- mercury::syscall::get_framebuffer(fb, fb_width, fb_height, fb_pitch);
+ hilbert::syscall::get_framebuffer(fb, fb_width, fb_height, fb_pitch);
for (uint32_t y = 0; y < fb_height; ++y)
for (uint32_t x = 0; x < fb_width; ++x) {
color c = {
@@ -18,9 +18,8 @@ int main(int, char **) {
.g = (uint8_t)(y * 255 / fb_height),
.b = (uint8_t)(x * 255 / fb_width)
};
- fb[y * fb_pitch + x] = mercury::syscall::encode_color(c);
+ fb[y * fb_pitch + x] = hilbert::syscall::encode_color(c);
}
- mercury::syscall::draw_framebuffer();
//*(int *)0x12345678 = 0;
//fb_width = *(uint32_t *)0xffffffffc0000000;