Overview
Comment: | RLE compression of levels |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA1: |
06cd05742fc5cf0ac97bb17748c8e5c3 |
User & Date: | user on 2018-03-10 22:48:20 |
Other Links: | manifest | tags |
Context
2018-03-16
| ||
01:51 | More details figured out of the file format check-in: 67bacbf22a user: user tags: trunk | |
2018-03-10
| ||
22:48 | RLE compression of levels check-in: 06cd05742f user: user tags: trunk | |
2018-03-09
| ||
06:00 | Add smallxrm check-in: f6f1c94d23 user: user tags: trunk | |
Changes
Modified mbtofhm.c from [fc5168bbe3] to [9fbf2afe75].
︙ | |||
443 444 445 446 447 448 449 | 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 | - + | } fclose(fp); } static void one_level(FILE*fp,int ord) { unsigned char buf[16]; unsigned char mru[32]; |
︙ | |||
481 482 483 484 485 486 487 | 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 | - + - - + + | } } fread(mru,1,32,stdin); // Skip border colours fread(buf,1,2,stdin); // Skip border colours mru[0x04]=mru[0x14]=255; n=fgetc(stdin); n|=fgetc(stdin)<<8; |
︙ | |||
518 519 520 521 522 523 524 | 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 | - + + + + + + + | if(q<32 && !memcmp(mru+q,buf,16)) { i|=0x80; } else { i|=buf[4]&7; if(buf[5] || memcmp(buf+10,"\0\0\0\0\0\0",6)) i|=0x08; if(q<32) memcpy(mru+q,buf,16); } |
︙ | |||
563 564 565 566 567 568 569 570 571 572 573 574 575 576 | 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 | + | fputc(j+236,fp); fputc((j+236)>>8,fp); } else { fwrite(buf+14,1,2,fp); } } } } if(r) fputc(r+0xBF,fp); fputc(255,fp); // End of objects n=fgetc(stdin); n|=fgetc(stdin)<<8; while(n--) { i=fgetc(stdin); i|=fgetc(stdin)<<8; // fputc(17,fp); // Select proportional font |
︙ |