1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-06-17 00:07:41 +02:00

* reading of .h3c headers

* a bit of readNormalNr deduplication
* minor changes
This commit is contained in:
mateuszb
2010-02-09 13:48:14 +00:00
parent ba80ba4f6e
commit d0bf334394
9 changed files with 127 additions and 114 deletions

View File

@ -18,7 +18,6 @@
*/
boost::mutex bitmap_handler_mx;
int readNormalNr (int pos, int bytCon, const unsigned char * str);
extern DLL_EXPORT CLodHandler *bitmaph;
@ -58,9 +57,9 @@ SDL_Surface * CPCXConv::getSurface() const
unsigned char add;
int it=0;
fSize = readNormalNr(it,4,pcx);it+=4;
width = readNormalNr(it,4,pcx);it+=4;
height = readNormalNr(it,4,pcx);it+=4;
fSize = readNormalNr(pcx, it); it+=4;
width = readNormalNr(pcx, it); it+=4;
height = readNormalNr(pcx, it); it+=4;
if (fSize==width*height*3)
check1=true;
else