]> 4ch.mooo.com Git - 16.git/blobdiff - src/lib/bitmap.c
too tired to continue
[16.git] / src / lib / bitmap.c
index 22bad98103086b9a36e7a7af57c700f448aebcd7..b42204aac9ac5ce22d0503df11a8b2839875827f 100755 (executable)
@@ -160,6 +160,7 @@ bitmapLoadPcx(char *filename, global_game_variables_t *gv) {
 }\r
 \r
 //TODO: update!!\r
+/*\r
 tileset_t\r
 bitmapLoadPcxTiles(char *filename, word twidth, word theight) {\r
        tileset_t ts;\r
@@ -167,33 +168,33 @@ bitmapLoadPcxTiles(char *filename, word twidth, word theight) {
        bitmap_t result;\r
        int i;\r
 \r
-       /* open the PCX file for reading */\r
+       // open the PCX file for reading\r
        file = fopen(filename, "rb");\r
        if(!file) {\r
                printf("Could not open %s for reading.\n", filename);\r
                exit(-2);\r
        }\r
 \r
-       /* load the first part of the pcx file */\r
+       // load the first part of the pcx file\r
        loadPcxStage1(file, &result);\r
 \r
-       /* get the number of tiles and set up the result structure */\r
+       // get the number of tiles and set up the result structure\r
        ts.twidth = twidth;\r
        ts.theight = theight;\r
        ts.ntiles = (result.width/twidth) * (result.height/theight);\r
        ts.palette = result.palette;\r
 \r
-       /* allocate the pixel storage for the tiles */\r
+       // allocate the pixel storage for the tiles\r
        ts.data = _fmalloc(sizeof(byte*) * ts.ntiles);\r
        //ts.data[0] = malloc(sizeof(byte) * ts.ntiles * twidth * theight);\r
        for(i=1; i < ts.ntiles; i++) {\r
                ts.data[i] = ts.data[i-1] + twidth * theight;\r
        }\r
 \r
-       /* finish off the file */\r
+       // finish off the file\r
        loadPcxPalette(file, &result);\r
 \r
        fclose(file);\r
 \r
        return ts;\r
-}\r
+}*/\r