From 5910ef259c427e62c72fbe24cc7db0da87244b3a Mon Sep 17 00:00:00 2001 From: NeoBrainX Date: Sun, 5 Dec 2010 16:15:01 +0000 Subject: [PATCH] Fix building with BBOX_SUPPORT enabled. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6530 8ced0084-cf51-0410-be5f-012b33b47a6e --- Source/Core/VideoCommon/Src/BPStructs.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/Source/Core/VideoCommon/Src/BPStructs.cpp b/Source/Core/VideoCommon/Src/BPStructs.cpp index f1de8f8b6c..1683546344 100644 --- a/Source/Core/VideoCommon/Src/BPStructs.cpp +++ b/Source/Core/VideoCommon/Src/BPStructs.cpp @@ -252,7 +252,7 @@ void BPWritten(const BPCmd& bp) // 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 #ifdef BBOX_SUPPORT - *g_VideoInitialize.pBBoxActive = false; + PixelEngine::bbox_active = false; #endif float yScale; @@ -402,18 +402,18 @@ void BPWritten(const BPCmd& bp) int left = bp.newvalue & 0x3ff; // We should only set these if bbox is calculated properly. - g_VideoInitialize.pBBox[0] = left; - g_VideoInitialize.pBBox[1] = right; - *g_VideoInitialize.pBBoxActive = true; + PixelEngine::bbox[0] = left; + PixelEngine::bbox[1] = right; + PixelEngine::bbox_active = true; // WARN_LOG(VIDEO, "ClearBBox LR: %i, %08x - %i, %i", bp.address, bp.newvalue, left, right); } else { int bottom = bp.newvalue >> 10; int top = bp.newvalue & 0x3ff; // We should only set these if bbox is calculated properly. - g_VideoInitialize.pBBox[2] = top; - g_VideoInitialize.pBBox[3] = bottom; - *g_VideoInitialize.pBBoxActive = true; + PixelEngine::bbox[2] = top; + PixelEngine::bbox[3] = bottom; + PixelEngine::bbox_active = true; // WARN_LOG(VIDEO, "ClearBBox TB: %i, %08x - %i, %i", bp.address, bp.newvalue, top, bottom); } #endif