X-Git-Url: http://4ch.mooo.com/gitweb/?a=blobdiff_plain;f=src%2Flib%2Fbitmap.c;h=c34e13d04bb83383d0e814e5c5e19f5f241db68c;hb=e0822f1d126fdc00b5fb8e1de1b84ef0f8f75a4a;hp=82a8525d104a13a777477a153518e2e45bfd70b7;hpb=4815fa30e092074ad9ada29f3937c232b8ee8522;p=16.git diff --git a/src/lib/bitmap.c b/src/lib/bitmap.c index 82a8525d..c34e13d0 100644 --- a/src/lib/bitmap.c +++ b/src/lib/bitmap.c @@ -75,7 +75,7 @@ bitmapLoadPcx(char *filename) { FILE *file; bitmap_t result; dword bufSize; - dword index; + int index; byte count, val; /* open the PCX file for reading */ @@ -94,13 +94,13 @@ bitmapLoadPcx(char *filename) { result.data = malloc(bufSize); // result.data = (byte far *)_fmalloc(bufSize); // result.data = (byte __huge *)halloc(bufSize, sizeof(byte)); - printf("&bufSize=%p\n", &bufSize); + /*printf("&bufSize=%p\n", &bufSize); printf("&result.data=%p\n", result.data); - printf("Size of block is %zu bytes\n", _fmsize(result.data)); + printf("Size of block is %zu bytes\n", _msize(result.data)); printf("Size of bufSize is %zu bytes\n", bufSize); printf("Size of result.width is %zu \n", result.width); printf("Size of result.height is %zu \n", result.height); - printf("Dimensions of result is %lu\n", (dword)result.width*result.height); + printf("Dimensions of result is %lu\n", (dword)result.width*result.height);*/ //exit(0); if(!result.data) { fprintf(stderr, "Could not allocate memory for bitmap data.");