From 632a43a964b24b043c950e1e3253443d24f0512c Mon Sep 17 00:00:00 2001 From: smf- Date: Fri, 26 Sep 2014 12:01:03 +0000 Subject: [PATCH] fix compile on MSVC 2012 & 2013 [Peter Ferrie] --- src/emu/cpu/tms34010/34010gfx.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/src/emu/cpu/tms34010/34010gfx.c b/src/emu/cpu/tms34010/34010gfx.c index c668f9da16e..929ea86124e 100644 --- a/src/emu/cpu/tms34010/34010gfx.c +++ b/src/emu/cpu/tms34010/34010gfx.c @@ -1427,11 +1427,16 @@ if ((daddr & (BITS_PER_PIXEL - 1)) != 0) osd_printf_debug("PIXBLT_R%d with odd d if (!TRANSPARENCY || pixel != 0) dstword = (dstword & ~dstmask) | pixel; + #if (BITS_PER_PIXEL<16) /* update the source */ srcmask = srcmask >> BITS_PER_PIXEL; /* update the destination */ dstmask = dstmask >> BITS_PER_PIXEL; + #else + srcmask = 0; + dstmask = 0; + #endif } /* write the result */ @@ -1469,11 +1474,16 @@ if ((daddr & (BITS_PER_PIXEL - 1)) != 0) osd_printf_debug("PIXBLT_R%d with odd d if (!TRANSPARENCY || pixel != 0) dstword = (dstword & ~dstmask) | pixel; + #if (BITS_PER_PIXEL<16) /* update the source */ srcmask = srcmask >> BITS_PER_PIXEL; /* update the destination */ dstmask = dstmask >> BITS_PER_PIXEL; + #else + srcmask = 0; + dstmask = 0; + #endif } /* write the result */ @@ -1507,11 +1517,16 @@ if ((daddr & (BITS_PER_PIXEL - 1)) != 0) osd_printf_debug("PIXBLT_R%d with odd d if (!TRANSPARENCY || pixel != 0) dstword = (dstword & ~dstmask) | pixel; + #if (BITS_PER_PIXEL<16) /* update the source */ srcmask = srcmask >> BITS_PER_PIXEL; /* update the destination */ dstmask = dstmask >> BITS_PER_PIXEL; + #else + srcmask = 0; + dstmask = 0; + #endif } /* write the result */