summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author Paul Priest <ppriest@gmail.com>2016-05-24 21:45:24 +0100
committer Paul Priest <ppriest@gmail.com>2016-05-24 21:45:24 +0100
commit25d907c348fa02127f574b4a4b6f2375845b2d42 (patch)
tree4934811a0bd8390ef935c43a85045222d3f7518a
parent8be2652e41e62c930c9cfa803d56a4e27e4794c9 (diff)
psikyosh.cpp/drawgfx.cpp - Fix debug asserts MT3753
Psikyosh uses bitmap_rgb32, but should really use argb32, but that requires overloading lots of drawgfx for this one driver. Removed assert was wrong and unavoidable. Fixed boundary condition tripping daraku as per MT3753.
-rw-r--r--src/emu/drawgfx.cpp2
-rw-r--r--src/mame/video/psikyosh.cpp2
2 files changed, 1 insertions, 3 deletions
diff --git a/src/emu/drawgfx.cpp b/src/emu/drawgfx.cpp
index 8ca9b1d7aea..e2bb6a688a8 100644
--- a/src/emu/drawgfx.cpp
+++ b/src/emu/drawgfx.cpp
@@ -1653,8 +1653,6 @@ void gfx_element::alphastore(bitmap_rgb32 &dest, const rectangle &cliprect,
DECLARE_NO_PRIORITY;
const pen_t *paldata;
- assert(dest.bpp() == 32);
- assert(dest.format() == BITMAP_FORMAT_ARGB32);
assert(alphatable != nullptr);
/* if we have a fixed alpha, call the standard drawgfx_transpen */
diff --git a/src/mame/video/psikyosh.cpp b/src/mame/video/psikyosh.cpp
index 2c40e75aa44..ab89aef6170 100644
--- a/src/mame/video/psikyosh.cpp
+++ b/src/mame/video/psikyosh.cpp
@@ -208,7 +208,7 @@ void psikyosh_state::cache_bitmap(int scanline, gfx_element *gfx, int size, int
// test if the tile row is the cached one or not
int sy = scanline / 16;
- assert(sy > 0 && sy < 32);
+ assert(sy >= 0 && sy < 32);
if(tilebank != last_bank[sy])
{