- fix bug with 512 tall BG
- remove zero_private junk file
This commit is contained in:
parent
8272bc6f4e
commit
2cc03b0a97
|
@ -1100,7 +1100,11 @@ INLINE void renderline_textBG(GPU * gpu, u8 num, u8 * dst, u32 Y, u16 XBG, u16 Y
|
||||||
TILEENTRY tileentry;
|
TILEENTRY tileentry;
|
||||||
|
|
||||||
|
|
||||||
map = (u8 *)MMU_RenderMapToLCD(gpu->BG_map_ram[num] + (tmp&31) * 64);
|
//zero 30-dec-2008 - if you mask by 31 here, you lose the ability to correctly map the bottom half of 512-tall BG.
|
||||||
|
//the masking to keep it to a reasonable value was already done when tmp was calculated
|
||||||
|
//map = (u8 *)MMU_RenderMapToLCD(gpu->BG_map_ram[num] + (tmp&31) * 64);
|
||||||
|
map = (u8 *)MMU_RenderMapToLCD(gpu->BG_map_ram[num] + (tmp) * 64);
|
||||||
|
|
||||||
if (!map) return;
|
if (!map) return;
|
||||||
|
|
||||||
if(tmp>31)
|
if(tmp>31)
|
||||||
|
@ -1251,6 +1255,7 @@ INLINE void renderline_textBG(GPU * gpu, u8 num, u8 * dst, u32 Y, u16 XBG, u16 Y
|
||||||
}
|
}
|
||||||
|
|
||||||
yoff = ((YBG&7)<<3);
|
yoff = ((YBG&7)<<3);
|
||||||
|
|
||||||
xfin = 8 - (xoff&7);
|
xfin = 8 - (xoff&7);
|
||||||
for(x = 0; x < LG; xfin = std::min<u16>(x+8, LG))
|
for(x = 0; x < LG; xfin = std::min<u16>(x+8, LG))
|
||||||
{
|
{
|
||||||
|
|
|
@ -39,9 +39,14 @@
|
||||||
#include "gfx3d.h"
|
#include "gfx3d.h"
|
||||||
#include "rtc.h"
|
#include "rtc.h"
|
||||||
#include "GPU_osd.h"
|
#include "GPU_osd.h"
|
||||||
#include "zero_private.h"
|
|
||||||
#include "mc.h"
|
#include "mc.h"
|
||||||
|
|
||||||
|
#ifdef DO_ASSERT_UNALIGNED
|
||||||
|
#define ASSERT_UNALIGNED(x) assert(x)
|
||||||
|
#else
|
||||||
|
#define ASSERT_UNALIGNED(x)
|
||||||
|
#endif
|
||||||
|
|
||||||
static void FASTCALL _MMU_ARM9_write08(u32 adr, u8 val);
|
static void FASTCALL _MMU_ARM9_write08(u32 adr, u8 val);
|
||||||
static void FASTCALL _MMU_ARM9_write16(u32 adr, u16 val);
|
static void FASTCALL _MMU_ARM9_write16(u32 adr, u16 val);
|
||||||
static void FASTCALL _MMU_ARM9_write32(u32 adr, u32 val);
|
static void FASTCALL _MMU_ARM9_write32(u32 adr, u32 val);
|
||||||
|
@ -777,7 +782,7 @@ static void execdiv() {
|
||||||
u16 cnt = T1ReadWord(MMU.MMU_MEM[ARMCPU_ARM9][0x40], 0x280);
|
u16 cnt = T1ReadWord(MMU.MMU_MEM[ARMCPU_ARM9][0x40], 0x280);
|
||||||
s64 num,den;
|
s64 num,den;
|
||||||
s64 res,mod;
|
s64 res,mod;
|
||||||
|
|
||||||
switch(cnt&3)
|
switch(cnt&3)
|
||||||
{
|
{
|
||||||
case 0:
|
case 0:
|
||||||
|
|
|
@ -42,7 +42,7 @@ const char *team[TEAM] = { "Original author",
|
||||||
"Andres Delikat",
|
"Andres Delikat",
|
||||||
"Riccardo Magliocchetti",
|
"Riccardo Magliocchetti",
|
||||||
"Max Tabachenko (CrazyMax/mtabachenko)",
|
"Max Tabachenko (CrazyMax/mtabachenko)",
|
||||||
"Zeromus",
|
"zeromus",
|
||||||
"Luigi__",
|
"Luigi__",
|
||||||
"",
|
"",
|
||||||
"Contributors",
|
"Contributors",
|
||||||
|
|
|
@ -1,12 +0,0 @@
|
||||||
#ifndef _zero_private_h
|
|
||||||
#define _zero_private_h
|
|
||||||
|
|
||||||
//#define ZERO_MODE
|
|
||||||
|
|
||||||
#ifdef ZERO_MODE
|
|
||||||
#define ASSERT_UNALIGNED(x) assert(x)
|
|
||||||
#else
|
|
||||||
#define ASSERT_UNALIGNED(x)
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#endif
|
|
Loading…
Reference in New Issue