From d8f91e8f7f5753989a5f9f13eacefbb515df1251 Mon Sep 17 00:00:00 2001 From: David Haywood Date: Sat, 29 Mar 2014 17:49:47 +0000 Subject: [PATCH] this fixes a clipping issue with littlerb and megaphx, although I need to check if anything else is adversely affected by the change (nw) --- src/emu/cpu/tms34010/34010gfx.c | 6 ++++-- src/mame/drivers/megaphx.c | 3 --- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/src/emu/cpu/tms34010/34010gfx.c b/src/emu/cpu/tms34010/34010gfx.c index 214acecf5ac..01546b029cb 100644 --- a/src/emu/cpu/tms34010/34010gfx.c +++ b/src/emu/cpu/tms34010/34010gfx.c @@ -10,7 +10,7 @@ #ifndef RECURSIVE_INCLUDE -#define LOG_GFX_OPS 0 +#define LOG_GFX_OPS 1 #define LOGGFX(x) do { if (LOG_GFX_OPS && tms->device->machine().input().code_pressed(KEYCODE_L)) logerror x; } while (0) @@ -109,9 +109,11 @@ static int apply_window(tms34010_state *tms, const char *inst_name,int srcbpp, U /* clip Y */ diff = WSTART_Y(tms) - sy; if (diff > 0) - { + { +#if 0 // littlerb and megaphx do not work correctly with this enabled, see items dropping into playfield from top if (srcaddr) *srcaddr += diff * SPTCH(tms); +#endif sy += diff; SET_V_LOG(tms, 1); } diff --git a/src/mame/drivers/megaphx.c b/src/mame/drivers/megaphx.c index 9ccb13b3263..4d6f64af722 100644 --- a/src/mame/drivers/megaphx.c +++ b/src/mame/drivers/megaphx.c @@ -22,9 +22,6 @@ I/O: - port_c_r / port_c_w should go through the 8255 but I don't see how to hook them up that way? various bits of the writes are lost? - Misc: - - some of the large phoenix graphics during stages 3/4 are corrupt for a frame when they re-enter at the top of the screen, possible original game bug? - --