X-Git-Url: http://4ch.mooo.com/gitweb/?a=blobdiff_plain;f=src%2Ftest2.c;h=5fae4d5071887823233dfc7771855a2887a850ec;hb=857b82aa09582d5c542e679ad0a32846bc27421d;hp=ac939e573a2ef62a4506be253cb0f11d6868d335;hpb=2fe35c053f6f106895e87ee646ec00eea32b605a;p=16.git diff --git a/src/test2.c b/src/test2.c index ac939e57..5fae4d50 100644 --- a/src/test2.c +++ b/src/test2.c @@ -1,33 +1,59 @@ -#include -#include "src\lib\modex16.h" -#include "src\lib\planar.h" -#include "src\lib\bitmap.h" +/* Project 16 Source Code~ + * Copyright (C) 2012-2015 sparky4 & pngwen & andrius4669 + * + * This file is part of Project 16. + * + * Project 16 is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 3 of the License, or + * (at your option) any later version. + * + * Project 16 is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see , or + * write to the Free Software Foundation, Inc., 51 Franklin Street, + * Fifth Floor, Boston, MA 02110-1301 USA. + * + */ + +#include +#include +#include "src/lib/modex16.h" +#include "src/lib/planar.h" +//#include "src/lib/bitmap.h" -word far* clock= (word far*) 0x046C; /* 18.2hz clock */ +word far* clockw= (word far*) 0x046C; /* 18.2hz clock */ -void main() { +void main() { + FILE *file; bitmap_t bmp; planar_buf_t *p; word size; int i; int plane; int x,y; - byte color; + //byte color; /* get the size we want */ - printf("Width: "); + /*printf("Width: "); scanf("%d", &bmp.width); printf("Height: "); scanf("%d", &bmp.height); printf("Color: "); - scanf("%x", &color); + scanf("%x", &color);*/ /* allocate the bmp and fill it with 42 */ - size = bmp.width * bmp.height; + /*size = bmp.width * bmp.height; bmp.data = malloc(size); for(i=0; iwidth*p->height, file); + //fclose(file); }