X-Git-Url: http://4ch.mooo.com/gitweb/?a=blobdiff_plain;f=src%2Ftest2.c;h=48299a41f2d80655d7df21108242e3367f68ef70;hb=b5c46f5e85d6be9895fa484766867907a885439c;hp=e20e2d331904c9d44c0ef77127f1af7b89794c36;hpb=de16a6b3392f5971e8e1647ad2ced99d0dce621e;p=16.git diff --git a/src/test2.c b/src/test2.c index e20e2d33..48299a41 100644 --- a/src/test2.c +++ b/src/test2.c @@ -1,11 +1,13 @@ -#include +#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 */ -void main() { +void main() { + FILE *file; bitmap_t bmp; planar_buf_t *p; word size; @@ -29,7 +31,7 @@ void main() { bmp.data[i] = color; }*/ - bmp = bitmapLoadPcx("ptmp.pcx"); + bmp = bitmapLoadPcx("data/koishi^^.pcx"); /* create the planar buffer */ p = planar_buf_from_bitmap(&bmp); @@ -44,5 +46,16 @@ void main() { } printf("\n"); } - } + } + /*__asm + { + mov ah,31h + int 21h + }*/ + +// file = fopen("ptmp0.pcx", "wb"); + + /* write the data to the file */ + //fwrite(p, 1, p->width*p->height, file); + //fclose(file); }