#include #include #include "vesa.h" extern char**environ; int main(int argc, char **argv) { // we need a window _gui_win(0xffffffff,300<<16|300,0); uint8_t *fb=malloc(4*300*300); // basically loads font and sets a few constants vesa_init(300,300,fb,NULL); while(1) { int x = rand()%300; int y = rand()%300; int col = rand()% 0x0000ff; int width=1; int height=1; //put_rect( x, y, width,height,col); PutPixel(x,y,col|0xff<<24); _gui_inval((x<<16)|(y),(width<<16)|height,fb); } }