diff options
| -rw-r--r-- | userspace/xterm/rect.c | 25 |
1 files changed, 25 insertions, 0 deletions
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 <stdlib.h> +#include <stdio.h> +#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); + } +} |
