]> 4ch.mooo.com Git - 16.git/blobdiff - src/lib/bitmap.c
trying to fix~ palette updater bug! wwww
[16.git] / src / lib / bitmap.c
index ece5f07d3ee659563747880bd0814743e18d810f..e6a0adb874fbc75957aab4184efc09ff1c8e6927 100644 (file)
@@ -75,7 +75,7 @@ bitmapLoadPcx(char *filename) {
     bitmap_t result;\r
     long bufSize;\r
     int index;\r
-    byte count, val;\r
+    byte count, val;
 \r
     /* open the PCX file for reading */\r
     file = fopen(filename, "rb");\r
@@ -85,11 +85,11 @@ bitmapLoadPcx(char *filename) {
     }\r
 \r
     /* load the first part of the pcx file */\r
-    loadPcxStage1(file, &result);\r
+    loadPcxStage1(file, &result);
 \r
     /* allocate the buffer */\r
-    bufSize = result.width * result.height;\r
-    result.data = malloc(bufSize);\r
+    bufSize = result.width * result.height;
+    result.data = malloc(bufSize);     //it breaks right here~
     if(!result.data) {\r
        printf("Could not allocate memory for bitmap data.");\r
        fclose(file);\r