trying another type of drawing

This commit is contained in:
Amy G. Bowersox 2019-12-01 20:57:36 -07:00
parent eea6a5445d
commit 421d441ad0

View File

@ -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; i<npix; i++)
*p++ = pixel;
}
int main(int argc, char *argv[])
{
int running = 1;
@ -24,10 +40,8 @@ int main(int argc, char *argv[])
atexit(Sys_disable_input);
/* temporary drawing here */
tmp = (char *)Fb_Ptr;
memset(tmp, 0xFF, Fb_Info->screenbytes / 2);
memset(tmp + (Fb_Info->screenbytes / 2), 0x1B, Fb_Info->screenbytes / 2);
do_draw();
Log(LINFO, "System ready.");
while (running)