trying another type of drawing
This commit is contained in:
parent
eea6a5445d
commit
421d441ad0
22
src/main.c
22
src/main.c
|
@ -6,6 +6,22 @@
|
||||||
#include "time_func.h"
|
#include "time_func.h"
|
||||||
#include "sysinput.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 main(int argc, char *argv[])
|
||||||
{
|
{
|
||||||
int running = 1;
|
int running = 1;
|
||||||
|
@ -24,10 +40,8 @@ int main(int argc, char *argv[])
|
||||||
atexit(Sys_disable_input);
|
atexit(Sys_disable_input);
|
||||||
|
|
||||||
/* temporary drawing here */
|
/* temporary drawing here */
|
||||||
tmp = (char *)Fb_Ptr;
|
do_draw();
|
||||||
memset(tmp, 0xFF, Fb_Info->screenbytes / 2);
|
|
||||||
memset(tmp + (Fb_Info->screenbytes / 2), 0x1B, Fb_Info->screenbytes / 2);
|
|
||||||
|
|
||||||
Log(LINFO, "System ready.");
|
Log(LINFO, "System ready.");
|
||||||
|
|
||||||
while (running)
|
while (running)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user