|
|
| version 1.6, 2004/06/21 14:29:23 | version 1.8, 2005/02/07 14:46:13 |
|---|---|
| Line 15 typedef unsigned char PALNUM; | Line 15 typedef unsigned char PALNUM; |
| typedef union { | typedef union { |
| UINT32 d; | UINT32 d; |
| BYTE rgb[4]; | UINT8 rgb[4]; |
| } BMPPAL; | } BMPPAL; |
| static void screenmix(PALNUM *dest, const BYTE *src1, const BYTE *src2) { | static void screenmix(PALNUM *dest, const UINT8 *src1, const UINT8 *src2) { |
| int i; | int i; |
| Line 28 static void screenmix(PALNUM *dest, cons | Line 28 static void screenmix(PALNUM *dest, cons |
| } | } |
| } | } |
| static void screenmix2(PALNUM *dest, const BYTE *src1, const BYTE *src2) { | static void screenmix2(PALNUM *dest, const UINT8 *src1, const UINT8 *src2) { |
| int x, y; | int x, y; |
| Line 48 static void screenmix2(PALNUM *dest, con | Line 48 static void screenmix2(PALNUM *dest, con |
| } | } |
| } | } |
| static void screenmix3(PALNUM *dest, const BYTE *src1, const BYTE *src2) { | static void screenmix3(PALNUM *dest, const UINT8 *src1, const UINT8 *src2) { |
| PALNUM c; | PALNUM c; |
| int x, y; | int x, y; |
| Line 70 static void screenmix3(PALNUM *dest, con | Line 70 static void screenmix3(PALNUM *dest, con |
| } | } |
| #if defined(SUPPORT_PC9821) | #if defined(SUPPORT_PC9821) |
| static void screenmix4(PALNUM *dest, const BYTE *src1, const BYTE *src2) { | static void screenmix4(PALNUM *dest, const UINT8 *src1, const UINT8 *src2) { |
| int i; | int i; |
| Line 92 SCRNBMP scrnbmp(void) { | Line 92 SCRNBMP scrnbmp(void) { |
| UINT scrnsize; | UINT scrnsize; |
| UINT allocsize; | UINT allocsize; |
| PALNUM *scrn; | PALNUM *scrn; |
| BYTE *p; | UINT8 *p; |
| BYTE *q; | UINT8 *q; |
| PALNUM *s; | PALNUM *s; |
| UINT pals; | UINT pals; |
| BMPPAL pal[NP2PAL_TOTAL]; | BMPPAL pal[NP2PAL_TOTAL]; |
| UINT8 remap[NP2PAL_TOTAL]; | PALNUM remap[NP2PAL_TOTAL]; |
| UINT8 remapflg[NP2PAL_TOTAL]; | UINT8 remapflg[NP2PAL_TOTAL]; |
| int x; | int x; |
| int y; | int y; |
| Line 111 SCRNBMP scrnbmp(void) { | Line 111 SCRNBMP scrnbmp(void) { |
| SCRNBMP ret; | SCRNBMP ret; |
| BMPFILE *bf; | BMPFILE *bf; |
| int r; | int r; |
| void (*mix)(PALNUM *dest, const BYTE *src1, const BYTE *src2); | void (*mix)(PALNUM *dest, const UINT8 *src1, const UINT8 *src2); |
| bd.width = dsync.scrnxmax; | bd.width = dsync.scrnxmax; |
| bd.height = dsync.scrnymax; | bd.height = dsync.scrnymax; |
| Line 141 SCRNBMP scrnbmp(void) { | Line 141 SCRNBMP scrnbmp(void) { |
| else { | else { |
| mix = screenmix3; | mix = screenmix3; |
| } | } |
| q = p = ((BYTE *)scrn) + (scrnsize * (sizeof(PALNUM) - 1)); | q = p = ((UINT8 *)scrn) + (scrnsize * (sizeof(PALNUM) - 1)); |
| if (gdcs.textdisp & 0x80) { | if (gdcs.textdisp & 0x80) { |
| p = np2_tram; | p = np2_tram; |
| } | } |
| Line 222 SCRNBMP scrnbmp(void) { | Line 222 SCRNBMP scrnbmp(void) { |
| bf->bfType[1] = 'M'; | bf->bfType[1] = 'M'; |
| pos = sizeof(BMPFILE) + sizeof(BMPINFO) + palsize; | pos = sizeof(BMPFILE) + sizeof(BMPINFO) + palsize; |
| STOREINTELDWORD(bf->bfOffBits, pos); | STOREINTELDWORD(bf->bfOffBits, pos); |
| q = (BYTE *)(bf + 1); | q = (UINT8 *)(bf + 1); |
| STOREINTELDWORD(bi.biClrImportant, pals); | STOREINTELDWORD(bi.biClrImportant, pals); |
| CopyMemory(q, &bi, sizeof(bi)); | CopyMemory(q, &bi, sizeof(bi)); |
| q += sizeof(bi); | q += sizeof(bi); |
| Line 271 SCRNBMP scrnbmp(void) { | Line 271 SCRNBMP scrnbmp(void) { |
| } while(scrn < s); | } while(scrn < s); |
| _MFREE(scrn); | _MFREE(scrn); |
| ret->type = type; | ret->type = type; |
| ret->ptr = (BYTE *)(ret + 1); | ret->ptr = (UINT8 *)(ret + 1); |
| ret->size = allocsize; | ret->size = allocsize; |
| return(ret); | return(ret); |