mirror of
https://github.com/ekeeke/Genesis-Plus-GX.git
synced 2024-12-26 11:11:48 +01:00
[Core/VDP] fixed misaligned buffer writes in Mode 4 when -DALIGN_LONG option is required
This commit is contained in:
parent
bd8589f4b8
commit
453583886a
@ -1481,7 +1481,7 @@ void render_bg_m4(int line)
|
||||
src = (uint32 *)&bg_pattern_cache[((attr & 0x7FF) << 6) | (v_line)];
|
||||
|
||||
/* Copy left & right half, adding the attribute bits in */
|
||||
#ifdef ALIGN_DWORD
|
||||
#ifdef ALIGN_LONG
|
||||
WRITE_LONG(dst, src[0] | atex);
|
||||
dst++;
|
||||
WRITE_LONG(dst, src[1] | atex);
|
||||
|
@ -4,8 +4,8 @@
|
||||
*
|
||||
* Support for all TMS99xx modes, Mode 4 & Mode 5 rendering
|
||||
*
|
||||
* Copyright (C) 1998-2007 Charles Mac Donald (original code)
|
||||
* Copyright (C) 2007-2013 Eke-Eke (Genesis Plus GX)
|
||||
* Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003 Charles Mac Donald (original code)
|
||||
* Copyright (C) 2007-2014 Eke-Eke (Genesis Plus GX)
|
||||
*
|
||||
* Redistribution and use of this code or any derivative works are permitted
|
||||
* provided that the following conditions are met:
|
||||
|
Loading…
Reference in New Issue
Block a user