--- xmil/vram/sdraw.mcr 2004/08/01 05:31:31 1.1 +++ xmil/vram/sdraw.mcr 2004/08/17 12:30:41 1.2 @@ -59,7 +59,7 @@ const UINT8 *p; sdraw->y = y; } -#if defined(SDSETZPIXEL) +#if defined(SUPPORT_TURBOZ) && defined(SDZMODE) static void SCRNCALL SDSYM(z)(SDRAW sdraw, int maxy) { const UINT8 *p; @@ -76,10 +76,10 @@ const UINT8 *p; if (sdraw->dirty[y]) { xmax = sdraw->width / 2; for (x=0; xxalign; - SDSETZPIXEL(q, c); + SDSETPIXEL(q, c); q += sdraw->xalign; } q -= sdraw->xbytes; @@ -97,11 +97,14 @@ const UINT8 *p; // ---- -static const SDRAWFN SDSYM(p)[3] = { -#if defined(SDSETZPIXEL) - SDSYM(x1), SDSYM(x2), SDSYM(z) +static const SDRAWFN SDSYM(p)[] = { + SDSYM(x1), SDSYM(x2), +#if defined(SUPPORT_TURBOZ) +#if defined(SDZMODE) + SDSYM(z) #else - SDSYM(x1), SDSYM(x2), NULL + NULL +#endif #endif };