summaryrefslogtreecommitdiffstatshomepage
path: root/src
diff options
context:
space:
mode:
author Aaron Giles <aaron@aarongiles.com>2008-06-30 16:27:56 +0000
committer Aaron Giles <aaron@aarongiles.com>2008-06-30 16:27:56 +0000
commitf33daa087753601d7dd4ec764a12125ace4b9b62 (patch)
tree7aca16fd7aa584adf2076bb05c834c73d5dd832d /src
parent744c82763eae8fcd018421da06f9dd54077b8348 (diff)
01948: All alg.c and cliffhgr.c sets: Access Violation when taking a snapshot
Diffstat (limited to 'src')
-rw-r--r--src/emu/rendersw.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/emu/rendersw.c b/src/emu/rendersw.c
index 71de463fc1d..5e536a1b2c7 100644
--- a/src/emu/rendersw.c
+++ b/src/emu/rendersw.c
@@ -291,7 +291,7 @@ INLINE UINT32 get_texel_yuy16_bilinear(const render_texinfo *texture, INT32 curu
if (v0 < 0) v0 = v1 = 0;
else if (v0 + 1 >= texture->height) v0 = texture->height - 1, v1 = 0;
- texbase += v0 * texture->rowpixels + u0;
+ texbase += v0 * texture->rowpixels + (u0 & ~1);
if ((curu & 0x10000) == 0)
{