|
|
| version 1.2, 2003/10/17 07:17:20 | version 1.5, 2004/01/31 20:05:24 |
|---|---|
| Line 148 const BYTE *p; | Line 148 const BYTE *p; |
| if (sdraw->dirty[y+1]) { | if (sdraw->dirty[y+1]) { |
| for (x=0; x<sdraw->width; x++) { | for (x=0; x<sdraw->width; x++) { |
| *(UINT32 *)q = np2_pal32[NP2PAL_TEXT].d; | SDSETPIXEL(q, NP2PAL_TEXT); |
| q += sdraw->xalign; | q += sdraw->xalign; |
| } | } |
| q -= sdraw->xbytes; | q -= sdraw->xbytes; |
| Line 261 const BYTE *q; | Line 261 const BYTE *q; |
| y = sdraw->y; | y = sdraw->y; |
| do { | do { |
| if (sdraw->dirty[y]) { | if (sdraw->dirty[y]) { |
| sdraw->dirty[y+1] |= 0xff; | |
| for (x=0; x<sdraw->width; x++) { | for (x=0; x<sdraw->width; x++) { |
| SDSETPIXEL(r, p[x] + q[x] + NP2PAL_GRPH); | SDSETPIXEL(r, p[x] + q[x] + NP2PAL_GRPH); |
| r += sdraw->xalign; | r += sdraw->xalign; |
| Line 314 static void SCRNCALL SDSYM(n_0)(SDRAW sd | Line 315 static void SCRNCALL SDSYM(n_0)(SDRAW sd |
| y = sdraw->y; | y = sdraw->y; |
| do { | do { |
| if (sdraw->dirty[y]) { | if (sdraw->dirty[y]) { |
| SDSETPIXEL(p, NP2PAL_TEXT3); | |
| for (x=0; x<sdraw->width; x++) { | for (x=0; x<sdraw->width; x++) { |
| SDSETPIXEL(p, NP2PAL_TEXT2); | |
| p += sdraw->xalign; | p += sdraw->xalign; |
| SDSETPIXEL(p, NP2PAL_TEXT2); | |
| } | } |
| SDSETPIXEL(p, NP2PAL_TEXT2); | |
| p -= sdraw->xbytes; | p -= sdraw->xbytes; |
| } | } |
| p += sdraw->yalign; | p += sdraw->yalign; |
| Line 341 const BYTE *p; | Line 342 const BYTE *p; |
| y = sdraw->y; | y = sdraw->y; |
| do { | do { |
| if (sdraw->dirty[y]) { | if (sdraw->dirty[y]) { |
| for (x=0; x<sdraw->width; x++) { | SDSETPIXEL(q, p[0] + NP2PAL_TEXT3); |
| q += sdraw->xalign; | |
| for (x=1; x<sdraw->width; x++) { | |
| SDSETPIXEL(q, p[x] + NP2PAL_GRPH); | SDSETPIXEL(q, p[x] + NP2PAL_GRPH); |
| q += sdraw->xalign; | q += sdraw->xalign; |
| } | } |
| Line 370 const BYTE *p; | Line 373 const BYTE *p; |
| y = sdraw->y; | y = sdraw->y; |
| do { | do { |
| if (sdraw->dirty[y]) { | if (sdraw->dirty[y]) { |
| SDSETPIXEL(q, NP2PAL_TEXT2); | SDSETPIXEL(q, NP2PAL_TEXT3); |
| for (x=0; x<sdraw->width; x++) { | for (x=0; x<sdraw->width; x++) { |
| q += sdraw->xalign; | q += sdraw->xalign; |
| SDSETPIXEL(q, p[x] + NP2PAL_GRPH); | SDSETPIXEL(q, p[x] + NP2PAL_GRPH); |
| Line 401 const BYTE *q; | Line 404 const BYTE *q; |
| y = sdraw->y; | y = sdraw->y; |
| do { | do { |
| if (sdraw->dirty[y]) { | if (sdraw->dirty[y]) { |
| SDSETPIXEL(r, q[0] + NP2PAL_GRPH); | SDSETPIXEL(r, (q[0] >> 4) + NP2PAL_TEXT3); |
| r += sdraw->xalign; | r += sdraw->xalign; |
| for (x=1; x<sdraw->width; x++) { | for (x=1; x<sdraw->width; x++) { |
| SDSETPIXEL(r, p[x-1] + q[x] + NP2PAL_GRPH); | SDSETPIXEL(r, p[x-1] + q[x] + NP2PAL_GRPH); |
| Line 479 const BYTE *p; | Line 482 const BYTE *p; |
| y = sdraw->y; | y = sdraw->y; |
| do { | do { |
| if (sdraw->dirty[y]) { | if (sdraw->dirty[y]) { |
| SDSETPIXEL(q, 0); | SDSETPIXEL(q, NP2PAL_TEXT3); |
| for (x=0; x<sdraw->width; x++) { | for (x=0; x<sdraw->width; x++) { |
| q += sdraw->xalign; | q += sdraw->xalign; |
| SDSETPIXEL(q, p[x] + NP2PAL_GRPH); | SDSETPIXEL(q, p[x] + NP2PAL_GRPH); |
| Line 490 const BYTE *p; | Line 493 const BYTE *p; |
| q += sdraw->yalign; | q += sdraw->yalign; |
| if (sdraw->dirty[y+1]) { | if (sdraw->dirty[y+1]) { |
| SDSETPIXEL(q, NP2PAL_TEXT); | SDSETPIXEL(q, NP2PAL_TEXT3); |
| for (x=0; x<sdraw->width; x++) { | for (x=0; x<sdraw->width; x++) { |
| q += sdraw->xalign; | q += sdraw->xalign; |
| SDSETPIXEL(q, NP2PAL_TEXT); | SDSETPIXEL(q, NP2PAL_TEXT); |
| Line 571 const BYTE *p; | Line 574 const BYTE *p; |
| do { | do { |
| if (sdraw->dirty[y]) { | if (sdraw->dirty[y]) { |
| sdraw->dirty[y+1] |= 0xff; | sdraw->dirty[y+1] |= 0xff; |
| SDSETPIXEL(q, 0); | SDSETPIXEL(q, NP2PAL_TEXT3); |
| for (x=0; x<sdraw->width; x++) { | for (x=0; x<sdraw->width; x++) { |
| q += sdraw->xalign; | q += sdraw->xalign; |
| SDSETPIXEL(q, p[x] + NP2PAL_GRPH); | SDSETPIXEL(q, p[x] + NP2PAL_GRPH); |
| Line 581 const BYTE *p; | Line 584 const BYTE *p; |
| q += sdraw->yalign; | q += sdraw->yalign; |
| if (sdraw->dirty[y+1]) { | if (sdraw->dirty[y+1]) { |
| SDSETPIXEL(q, 0); | SDSETPIXEL(q, NP2PAL_TEXT3); |
| for (x=0; x<sdraw->width; x++) { | for (x=0; x<sdraw->width; x++) { |
| SDSETPIXEL(q, p[x] + NP2PAL_SKIP); | SDSETPIXEL(q, p[x] + NP2PAL_SKIP); |
| q += sdraw->xalign; | q += sdraw->xalign; |