From ad94570c78a8d9e426fd0d48e9709dba27803b71 Mon Sep 17 00:00:00 2001 From: Miguel Date: Thu, 18 Oct 2018 12:25:12 +0200 Subject: New Scheduling / syscalls work a bit. and is much smoother! --- userspace/xterm/rect.c | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 userspace/xterm/rect.c (limited to 'userspace') diff --git a/userspace/xterm/rect.c b/userspace/xterm/rect.c new file mode 100644 index 0000000..35711f0 --- /dev/null +++ b/userspace/xterm/rect.c @@ -0,0 +1,25 @@ +#include +#include +#include "../put_pixel.h" + +extern char**environ; + +int main(int argc, char **argv) +{ + // we need a window + _gui_win(); + + // basically loads font and sets a few constants + vesa_init(NULL); + + while(1) + { + int x = rand()%600; + int y = rand()%300; + int width=10; + int height=10; + int col = rand()% 0x00ffff; + put_rect( x, y, width,height,col); + _gui_inval((x<<16)|(y),(width<<16)|height); + } +} -- cgit v1.2.3