diff options
Diffstat (limited to 'src/emu/drawgfxm.h')
-rw-r--r-- | src/emu/drawgfxm.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/emu/drawgfxm.h b/src/emu/drawgfxm.h index 325ce0e974c..1bef8e15237 100644 --- a/src/emu/drawgfxm.h +++ b/src/emu/drawgfxm.h @@ -95,6 +95,21 @@ do while (0) /*------------------------------------------------- + PIXEL_OP_COPY_TRANSALPHA - render all pixels + except those with an alpha of zero, copying + directly +-------------------------------------------------*/ + +#define PIXEL_OP_COPY_TRANSALPHA(DEST, PRIORITY, SOURCE) \ +do \ +{ \ + u32 srcdata = (SOURCE); \ + if ((srcdata & 0xff000000) != 0) \ + (DEST) = SOURCE; \ +} \ +while (0) + +/*------------------------------------------------- PIXEL_OP_REMAP_OPAQUE - render all pixels regardless of pen, mapping the pen via the 'paldata' array |