From 421d441ad09ca4588c4fc4c65e918cc67e569194 Mon Sep 17 00:00:00 2001 From: Amy Gale Ruth Bowersox Date: Sun, 1 Dec 2019 20:57:36 -0700 Subject: [PATCH] trying another type of drawing --- src/main.c | 22 ++++++++++++++++++---- 1 file changed, 18 insertions(+), 4 deletions(-) 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)