summaryrefslogtreecommitdiff
path: root/userspace/pain1.c
diff options
context:
space:
mode:
authorMiguel <m.i@gmx.at>2018-10-15 23:06:47 +0200
committerMiguel <m.i@gmx.at>2018-10-15 23:06:47 +0200
commit39f271589fb9db3d6a383857817b13a9bb59d981 (patch)
tree0664d03268e49fa1028b144e7b596510bdb65906 /userspace/pain1.c
parentcf43e3a1205c133505371fb5fd5b2db6b711e195 (diff)
ported zlib and libpng and improved compositor to handle 32 AND 24 bit depth
Diffstat (limited to 'userspace/pain1.c')
-rw-r--r--userspace/pain1.c48
1 files changed, 0 insertions, 48 deletions
diff --git a/userspace/pain1.c b/userspace/pain1.c
deleted file mode 100644
index ddceaa5..0000000
--- a/userspace/pain1.c
+++ /dev/null
@@ -1,48 +0,0 @@
-#include "put_pixel.h"
-
-#include <stdlib.h>
-#include <stdio.h>
-
-#define dimx 640
-#define dimy 480
-
-/*
-void doscolor(int color,int color2)
-{
- int i=0;
-
- for (int y = 0; y < dimy; y++)
- for (int x = 0; x < dimx; x++)
- {
- {
- if(x%2&&y%2)put_pixel(x,y,color);
- else put_pixel(x,y,color2);
- }
- }
-}
-*/
-
-int main(int argc,char **argv)
-{
- _gui_win();
-
- for(int i=0;i<2000;i++)
- {
- for(int i=0;i<380;i+=40)
- {
- put_rect(0,0,640,480,0x0000ff);
- put_rect(640-i,i,100,100,0xff00ff);
- _gui_rect();
- }
-
- for(int i=380;i>0;i-=80)
- {
- put_rect(0,0,640,480,0x0000ff);
- put_rect(640-i,i,100,100,0x00ffff);
- _gui_rect();
- }
- }
-
- return EXIT_SUCCESS;
-}
-