X-Git-Url: http://4ch.mooo.com/gitweb/?a=blobdiff_plain;f=16%2Fsrc%2Flib%2Fbitmap.c;h=4e48cab20ab58206683d0e6c765e0910a236d52b;hb=5991a0522a36b2a73bc223c50113965179a53b7a;hp=6e496049a283030eadd80488a46d7ff27ec67c21;hpb=8402804d56a98a48de98aba30941670f6ac6c5a3;p=16.git diff --git a/16/src/lib/bitmap.c b/16/src/lib/bitmap.c index 6e496049..4e48cab2 100755 --- a/16/src/lib/bitmap.c +++ b/16/src/lib/bitmap.c @@ -77,7 +77,7 @@ static void loadPcxPalette(FILE *file, bitmap_t *result) { /* handle the palette */ fseek(file, -769, SEEK_END); val = fgetc(file); - result->palette = modexNewPal(); + result->palette = omodexNewPal(); if(head.version == 5 && val == 12) { /* use the vga palette */ for(index=0; !feof(file) && index < PAL_SIZE; index++) { @@ -197,16 +197,3 @@ bitmapLoadPcxTiles(char *filename, word twidth, word theight) { return ts; } - -byte * -modexNewPal() { - byte *ptr; - ptr = malloc(PAL_SIZE); - - // handle errors - if(!ptr) { - printf("Could not allocate palette.\n"); - } - - return ptr; -}