X-Git-Url: http://4ch.mooo.com/gitweb/?a=blobdiff_plain;f=src%2Ftest2.c;h=e33a676ec54a74a48ea5d76a1958a25e15e645f5;hb=f76e2f4cbbdeb94abb2271379092284f4a7f9d29;hp=e10597f8f09d49cb38c182ed13ce1af92bbd4f75;hpb=0f1f17dc05c1f9530651580fc5c23b121b8969ab;p=16.git diff --git a/src/test2.c b/src/test2.c index e10597f8..e33a676e 100755 --- a/src/test2.c +++ b/src/test2.c @@ -1,5 +1,5 @@ /* Project 16 Source Code~ - * Copyright (C) 2012-2015 sparky4 & pngwen & andrius4669 + * Copyright (C) 2012-2017 sparky4 & pngwen & andrius4669 & joncampbell123 & yakui-lover * * This file is part of Project 16. * @@ -22,14 +22,14 @@ #include #include -#include "src/lib/modex16.h" +#include "src/lib/16_vl.h" #include "src/lib/planar.h" //#include "src/lib/bitmap.h" void main() { FILE *file; bitmap_t bmp; - planar_buf_t *p; +//---- planar_buf_t *p; word size; int i; int plane; @@ -56,17 +56,17 @@ void main() { /* create the planar buffer */ p = planar_buf_from_bitmap(&bmp); - /* print out the contents of each plane */ - for(plane=0; plane < 4; plane++) { - i=0; - printf("Plane %d\n", plane); - for(y=0; y < p->height; y++) { - for(x=0; x < p->pwidth; x++) { - printf("%02X ", (int) p->plane[plane][i++]); - } - printf("\n"); + /* print out the contents of each plane */ + for(plane=0; plane < 4; plane++) { + i=0; + printf("Plane %d\n", plane); + for(y=0; y < p->height; y++) { + for(x=0; x < p->pwidth; x++) { + printf("%02X ", (int) p->plane[plane][i++]); + } + printf("\n"); + } } - } /*__asm { mov ah,31h