--- np2/vram/sdraw.mcr 2003/10/16 17:58:14 1.1 +++ np2/vram/sdraw.mcr 2004/01/22 01:10:04 1.4 @@ -1,7 +1,7 @@ // ---- plasma display -// vram off / 32bit色 +// vram off static void SCRNCALL SDSYM(p_0)(SDRAW sdraw, int maxy) { BYTE *p; @@ -25,7 +25,7 @@ static void SCRNCALL SDSYM(p_0)(SDRAW sd sdraw->y = y; } -// text or grph 1プレーン / 32bit色 +// text or grph 1プレーン static void SCRNCALL SDSYM(p_1)(SDRAW sdraw, int maxy) { const BYTE *p; @@ -53,7 +53,7 @@ const BYTE *p; sdraw->y = y; } -// text + grph / 32bit色 +// text + grph static void SCRNCALL SDSYM(p_2)(SDRAW sdraw, int maxy) { const BYTE *p; @@ -85,7 +85,7 @@ const BYTE *q; sdraw->y = y; } -// text + (grph:interleave) / 32bit色 +// text + (grph:interleave) static void SCRNCALL SDSYM(p_ti)(SDRAW sdraw, int maxy) { const BYTE *p; @@ -124,7 +124,7 @@ const BYTE *p; sdraw->y = y; } -// grph:interleave / 32bit色 +// grph:interleave static void SCRNCALL SDSYM(p_gi)(SDRAW sdraw, int maxy) { const BYTE *p; @@ -148,7 +148,7 @@ const BYTE *p; if (sdraw->dirty[y+1]) { for (x=0; xwidth; x++) { - *(UINT32 *)q = np2_pal32[NP2PAL_TEXT].d; + SDSETPIXEL(q, NP2PAL_TEXT); q += sdraw->xalign; } q -= sdraw->xbytes; @@ -163,7 +163,7 @@ const BYTE *p; sdraw->y = y; } -// text + grph:interleave / 32bit色 +// text + grph:interleave static void SCRNCALL SDSYM(p_2i)(SDRAW sdraw, int maxy) { const BYTE *p; @@ -206,7 +206,7 @@ const BYTE *q; sdraw->y = y; } -// grph:interleave ex / 32bit色 +// grph:interleave ex static void SCRNCALL SDSYM(p_gie)(SDRAW sdraw, int maxy) { const BYTE *p; @@ -245,7 +245,7 @@ const BYTE *p; sdraw->y = y; } -// text + grph:interleave ex / 32bit色 +// text + grph:interleave ex static void SCRNCALL SDSYM(p_2ie)(SDRAW sdraw, int maxy) { const BYTE *p; @@ -261,6 +261,7 @@ const BYTE *q; y = sdraw->y; do { if (sdraw->dirty[y]) { + sdraw->dirty[y+1] |= 0xff; for (x=0; xwidth; x++) { SDSETPIXEL(r, p[x] + q[x] + NP2PAL_GRPH); r += sdraw->xalign; @@ -303,7 +304,7 @@ static const SDRAWFN SDSYM(p)[] = { #ifdef SUPPORT_NORMALDISP -// vram off / 32bit色 +// vram off static void SCRNCALL SDSYM(n_0)(SDRAW sdraw, int maxy) { BYTE *p; @@ -328,7 +329,7 @@ static void SCRNCALL SDSYM(n_0)(SDRAW sd sdraw->y = y; } -// text 1プレーン / 32bit色 +// text 1プレーン static void SCRNCALL SDSYM(n_t)(SDRAW sdraw, int maxy) { const BYTE *p; @@ -357,7 +358,7 @@ const BYTE *p; sdraw->y = y; } -// grph 1プレーン / 32bit色 +// grph 1プレーン static void SCRNCALL SDSYM(n_g)(SDRAW sdraw, int maxy) { const BYTE *p; @@ -386,7 +387,7 @@ const BYTE *p; sdraw->y = y; } -// text + grph / 32bit色 +// text + grph static void SCRNCALL SDSYM(n_2)(SDRAW sdraw, int maxy) { const BYTE *p; @@ -401,7 +402,7 @@ const BYTE *q; y = sdraw->y; do { if (sdraw->dirty[y]) { - SDSETPIXEL(r, q[0] + NP2PAL_GRPH); + SDSETPIXEL(r, q[0] + NP2PAL_GRPH); // !! r += sdraw->xalign; for (x=1; xwidth; x++) { SDSETPIXEL(r, p[x-1] + q[x] + NP2PAL_GRPH); @@ -421,7 +422,7 @@ const BYTE *q; sdraw->y = y; } -// text + (grph:interleave) / 32bit色 +// text + (grph:interleave) static void SCRNCALL SDSYM(n_ti)(SDRAW sdraw, int maxy) { const BYTE *p; @@ -466,7 +467,7 @@ const BYTE *p; sdraw->y = y; } -// grph:interleave / 32bit色 +// grph:interleave static void SCRNCALL SDSYM(n_gi)(SDRAW sdraw, int maxy) { const BYTE *p; @@ -507,7 +508,7 @@ const BYTE *p; sdraw->y = y; } -// text + grph:interleave / 32bit色 +// text + grph:interleave static void SCRNCALL SDSYM(n_2i)(SDRAW sdraw, int maxy) { const BYTE *p; @@ -557,7 +558,7 @@ const BYTE *q; sdraw->y = y; } -// grph:interleave ex / 32bit色 +// grph:interleave ex static void SCRNCALL SDSYM(n_gie)(SDRAW sdraw, int maxy) { const BYTE *p; @@ -598,7 +599,7 @@ const BYTE *p; sdraw->y = y; } -// text + grph:interleave ex / 32bit色 +// text + grph:interleave ex static void SCRNCALL SDSYM(n_2ie)(SDRAW sdraw, int maxy) { const BYTE *p;