From 2dee5075b0f11978ede3302318de812bee0f1dc5 Mon Sep 17 00:00:00 2001 From: dinkc64 <12570148+dinkc64@users.noreply.github.com> Date: Wed, 17 Dec 2014 07:18:31 +0000 Subject: [PATCH] AWJ`s version of my k053936 heap-corruption fix --- src/burn/drv/konami/k053936.cpp | 38 ++++++--------------------------- 1 file changed, 6 insertions(+), 32 deletions(-) diff --git a/src/burn/drv/konami/k053936.cpp b/src/burn/drv/konami/k053936.cpp index 85e4daff1..fc840c362 100644 --- a/src/burn/drv/konami/k053936.cpp +++ b/src/burn/drv/konami/k053936.cpp @@ -485,7 +485,7 @@ static inline void K053936GP_copyroz32clip(INT32 chip, UINT16 *src_bitmap, INT32 if (blend > 0) { - dst_base += dst_pitch; // draw blended + dst_ptr += dst_pitch; // draw blended starty += incyy; startx += incyx; @@ -510,12 +510,12 @@ static inline void K053936GP_copyroz32clip(INT32 chip, UINT16 *src_bitmap, INT32 if (!(pixel & cmask)) continue; // this one below is fucked. - if ((dst_ptr+ecx+dst_base2+dst_pitch) 1) - { - ty >>= 1; - dst_pitch <<= 1; - incyy <<= 1; - incyx <<= 1; - - dst_ptr += dst_pitch; - starty = cy + incyy; - startx = cx + incyx; - } - } + dst_ptr += dst_pitch; + starty += incyy; + startx += incyx; do { do {