X-Git-Url: http://4ch.mooo.com/gitweb/?a=blobdiff_plain;f=src%2Flib%2Fbitmap.c;h=1e4a8d5b54ea9b179b17566f3b92aec3db4e8e29;hb=24760854cf1668b8b0eba2bfaf63ab083da14ea8;hp=d2480bafafd96b759a2cd0e5987f0e3ed450419b;hpb=d0b4d523e0a90d036da0512a224389bf40895c09;p=16.git diff --git a/src/lib/bitmap.c b/src/lib/bitmap.c index d2480baf..1e4a8d5b 100755 --- a/src/lib/bitmap.c +++ b/src/lib/bitmap.c @@ -1,5 +1,5 @@ /* Project 16 Source Code~ - * Copyright (C) 2012-2016 sparky4 & pngwen & andrius4669 & joncampbell123 + * Copyright (C) 2012-2016 sparky4 & pngwen & andrius4669 & joncampbell123 & yakui-lover * * This file is part of Project 16. * @@ -25,6 +25,26 @@ #include #include "src/lib/bitmap.h" +static struct pcxHeader { + byte id; + byte version; + byte encoding; + byte bpp; + word xmin; + word ymin; + word xmax; + word ymax; + word hres; + word vres; + byte pal16[48]; + byte res1; + word bpplane; + word palType; + word hScreenSize; + word vScreenSize; + byte padding[54]; +} head; + static void loadPcxStage1(FILE *file, bitmap_t *result) { long bufSize; int index;