mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-02-15 08:49:20 +01:00
Fix building with BBOX_SUPPORT enabled.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6530 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
parent
0ecf88c300
commit
5910ef259c
@ -252,7 +252,7 @@ void BPWritten(const BPCmd& bp)
|
|||||||
// here. Not sure if there's a better spot to put this.
|
// here. Not sure if there's a better spot to put this.
|
||||||
// the number of lines copied is determined by the y scale * source efb height
|
// the number of lines copied is determined by the y scale * source efb height
|
||||||
#ifdef BBOX_SUPPORT
|
#ifdef BBOX_SUPPORT
|
||||||
*g_VideoInitialize.pBBoxActive = false;
|
PixelEngine::bbox_active = false;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
float yScale;
|
float yScale;
|
||||||
@ -402,18 +402,18 @@ void BPWritten(const BPCmd& bp)
|
|||||||
int left = bp.newvalue & 0x3ff;
|
int left = bp.newvalue & 0x3ff;
|
||||||
|
|
||||||
// We should only set these if bbox is calculated properly.
|
// We should only set these if bbox is calculated properly.
|
||||||
g_VideoInitialize.pBBox[0] = left;
|
PixelEngine::bbox[0] = left;
|
||||||
g_VideoInitialize.pBBox[1] = right;
|
PixelEngine::bbox[1] = right;
|
||||||
*g_VideoInitialize.pBBoxActive = true;
|
PixelEngine::bbox_active = true;
|
||||||
// WARN_LOG(VIDEO, "ClearBBox LR: %i, %08x - %i, %i", bp.address, bp.newvalue, left, right);
|
// WARN_LOG(VIDEO, "ClearBBox LR: %i, %08x - %i, %i", bp.address, bp.newvalue, left, right);
|
||||||
} else {
|
} else {
|
||||||
int bottom = bp.newvalue >> 10;
|
int bottom = bp.newvalue >> 10;
|
||||||
int top = bp.newvalue & 0x3ff;
|
int top = bp.newvalue & 0x3ff;
|
||||||
|
|
||||||
// We should only set these if bbox is calculated properly.
|
// We should only set these if bbox is calculated properly.
|
||||||
g_VideoInitialize.pBBox[2] = top;
|
PixelEngine::bbox[2] = top;
|
||||||
g_VideoInitialize.pBBox[3] = bottom;
|
PixelEngine::bbox[3] = bottom;
|
||||||
*g_VideoInitialize.pBBoxActive = true;
|
PixelEngine::bbox_active = true;
|
||||||
// WARN_LOG(VIDEO, "ClearBBox TB: %i, %08x - %i, %i", bp.address, bp.newvalue, top, bottom);
|
// WARN_LOG(VIDEO, "ClearBBox TB: %i, %08x - %i, %i", bp.address, bp.newvalue, top, bottom);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user