#include <stdio.h>\r
#include <stdlib.h>\r
#include <malloc.h>\r
-#include "src/lib/bitmap.h"\r
+#include "16/src/lib/bitmap.h"\r
#include "src/lib/16_mm.h"\r
#include "src/lib/16_pm.h"\r
#include "src/lib/16_ca.h"\r
/* handle the palette */\r
fseek(file, -769, SEEK_END);\r
val = fgetc(file);\r
- result->palette = modexNewPal();\r
+ result->palette = omodexNewPal();\r
if(head.version == 5 && val == 12) {\r
/* use the vga palette */\r
for(index=0; !feof(file) && index < PAL_SIZE; index++) {\r
ts.palette = result.palette;\r
\r
/* allocate the pixel storage for the tiles */\r
- ts.data = _fmalloc(sizeof(byte*) * ts.ntiles);\r
+ ts.data = malloc(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