summaryrefslogtreecommitdiff
path: root/userspace/pain2.c
diff options
context:
space:
mode:
Diffstat (limited to 'userspace/pain2.c')
-rw-r--r--userspace/pain2.c13
1 files changed, 9 insertions, 4 deletions
diff --git a/userspace/pain2.c b/userspace/pain2.c
index 840b6b6..69784ce 100644
--- a/userspace/pain2.c
+++ b/userspace/pain2.c
@@ -1,4 +1,5 @@
#include "put_pixel.h"
+#include "newcalls.h"
#include <stdlib.h>
#include <stdio.h>
@@ -24,18 +25,22 @@ void doscolor(int color,int color2)
int main(int argc,char **argv)
{
+ _gui_win();
+
for(int i=0;i<atoi(argv[1]);i++)
{
- for(int i=0;i<100;i++)
+ for(int i=0;i<380;i+=40)
{
put_rect(0,0,640,480,0xff0000);
- put_rect(100+i,100+i,100,100,0x0000ff);
+ put_rect(i,i,100,100,0x0000ff);
+ _gui_rect();
}
- for(int i=100;i>0;i--)
+ for(int i=380;i>0;i-=80)
{
put_rect(0,0,640,480,0xff0000);
- put_rect(100+i,100+i,100,100,0x0000ff);
+ put_rect(i,i,100,100,0x0000ff);
+ _gui_rect();
}
}