-INLINE void WRITE_4PIXELS16x2 (uint32 Offset, uint8 *Pixels)
-{
- register uint32 Pixel;
- uint16 *Screen = (uint16 *) GFX.S + Offset;
- uint8 *Depth = GFX.DB + Offset;
-
-#define FN(N) \
- if (GFX.Z1 > Depth [N * 2] && (Pixel = Pixels[N])) \
- { \
- Screen [N * 2] = Screen [N * 2 + 1] = GFX.ScreenColors [Pixel]; \
- Depth [N * 2] = Depth [N * 2 + 1] = GFX.Z2; \
- }
-
- FN(0)
- FN(1)
- FN(2)
- FN(3)
-#undef FN
-}
-
-INLINE void WRITE_4PIXELS16_FLIPPEDx2 (uint32 Offset, uint8 *Pixels)
-{
- register uint32 Pixel;
- uint16 *Screen = (uint16 *) GFX.S + Offset;
- uint8 *Depth = GFX.DB + Offset;
-
-#define FN(N) \
- if (GFX.Z1 > Depth [N * 2] && (Pixel = Pixels[3 - N])) \
- { \
- Screen [N * 2] = Screen [N * 2 + 1] = GFX.ScreenColors [Pixel]; \
- Depth [N * 2] = Depth [N * 2 + 1] = GFX.Z2; \
- }
-
- FN(0)
- FN(1)
- FN(2)
- FN(3)
-#undef FN
-}
-
-INLINE void WRITE_4PIXELS16x2x2 (uint32 Offset, uint8 *Pixels)
-{
- register uint32 Pixel;
- uint16 *Screen = (uint16 *) GFX.S + Offset;
- uint8 *Depth = GFX.DB + Offset;
-
-#define FN(N) \
- if (GFX.Z1 > Depth [N * 2] && (Pixel = Pixels[N])) \
- { \
- Screen [N * 2] = Screen [N * 2 + 1] = Screen [(GFX.Pitch >> 1) + N * 2] = \
- Screen [(GFX.Pitch >> 1) + N * 2 + 1] = GFX.ScreenColors [Pixel]; \
- Depth [N * 2] = Depth [N * 2 + 1] = Depth [(GFX.Pitch >> 1) + N * 2] = \
- Depth [(GFX.Pitch >> 1) + N * 2 + 1] = GFX.Z2; \
- }
-
- FN(0)
- FN(1)
- FN(2)
- FN(3)
-#undef FN
-}
-
-INLINE void WRITE_4PIXELS16_FLIPPEDx2x2 (uint32 Offset, uint8 *Pixels)
-{
- register uint32 Pixel;
- uint16 *Screen = (uint16 *) GFX.S + Offset;
- uint8 *Depth = GFX.DB + Offset;
-
-#define FN(N) \
- if (GFX.Z1 > Depth [N * 2] && (Pixel = Pixels[3 - N])) \
- { \
- Screen [N * 2] = Screen [N * 2 + 1] = Screen [(GFX.Pitch >> 1) + N * 2] = \
- Screen [(GFX.Pitch >> 1) + N * 2 + 1] = GFX.ScreenColors [Pixel]; \
- Depth [N * 2] = Depth [N * 2 + 1] = Depth [(GFX.Pitch >> 1) + N * 2] = \
- Depth [(GFX.Pitch >> 1) + N * 2 + 1] = GFX.Z2; \
- }
-
- FN(0)
- FN(1)
- FN(2)
- FN(3)
-#undef FN
-}
-