diff --git a/src/main.c b/src/main.c index 76d7a46..7c871a1 100644 --- a/src/main.c +++ b/src/main.c @@ -6,6 +6,22 @@ #include "time_func.h" #include "sysinput.h" +static void do_draw(void) +{ + /* + tmp = (char *)Fb_Ptr; + memset(tmp, 0xFF, Fb_Info->screenbytes / 2); + memset(tmp + (Fb_Info->screenbytes / 2), 0x1B, Fb_Info->screenbytes / 2); + */ + uint16_t pixel = Fb_Info->green_mask; + unsigned npix = Fb_Info->screenbytes / sizeof(uint16_t); + uint16_t *p = Fb_Ptr; + unsigned i; + + for (i=0; iscreenbytes / 2); - memset(tmp + (Fb_Info->screenbytes / 2), 0x1B, Fb_Info->screenbytes / 2); - + do_draw(); + Log(LINFO, "System ready."); while (running)