diff options
author | EliteTK <tomasz.kramkowski@gmail.com> | 2014-02-25 17:43:12 +0000 |
---|---|---|
committer | EliteTK <tomasz.kramkowski@gmail.com> | 2014-02-25 17:43:12 +0000 |
commit | fdd18abebe52d9610d6e613fa92aa376d422e41e (patch) | |
tree | 4d2a03f2e0e4bd8d073842561a88fa6240da68c4 | |
parent | 43b2d6c59aaac0aa17b81043b641149105a0315d (diff) | |
download | c-stuff-fdd18abebe52d9610d6e613fa92aa376d422e41e.tar.gz c-stuff-fdd18abebe52d9610d6e613fa92aa376d422e41e.tar.xz c-stuff-fdd18abebe52d9610d6e613fa92aa376d422e41e.zip |
Final version of framebuffer.c before fbgl
-rw-r--r-- | framebuffer.c | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/framebuffer.c b/framebuffer.c index 665b833..6eab853 100644 --- a/framebuffer.c +++ b/framebuffer.c @@ -18,7 +18,13 @@ int main( void ) { } int i, ii, iii; - for ( iii = 0; iii < 768 / 2; iii++ ) { + for ( iii = 0; iii < 768 / 3; iii++ ) { + for ( i = 0; i < 1024; i++ ) { + fputc(255, fbp); + fputc(0, fbp); + fputc(0, fbp); + fputc(255, fbp); + } for ( i = 0; i < 1024; i++ ) { fputc(0, fbp); fputc(255, fbp); @@ -26,8 +32,10 @@ int main( void ) { fputc(255, fbp); } for ( i = 0; i < 1024; i++ ) { - for ( ii = 0; ii < 4; ii++ ) - fputc(0, fbp); + fputc(0, fbp); + fputc(0, fbp); + fputc(255, fbp); + fputc(255, fbp); } } |