diff options
| author | Matthew Parlane <parlane@gmail.com> | 2013-01-01 23:28:46 +1300 |
|---|---|---|
| committer | Matthew Parlane <parlane@gmail.com> | 2013-01-01 23:28:46 +1300 |
| commit | e0c9a1fd09b9be953bf0ae41b9014485e750b07e (patch) | |
| tree | 059744e17a2a35ca58dd9b817cab620faee38611 /Source/Core/VideoCommon/Src/BPFunctions.cpp | |
| parent | fe1fdc5e7b957312c906324134e42ca3484fa2d5 (diff) | |
| parent | c728ef2cd30ef803210d5db0a1ecab6b198a2c65 (diff) | |
Merge branch 'master' into wii-network
Conflicts:
Source/Core/Common/Src/CommonPaths.h
Source/Core/Core/CMakeLists.txt
Source/Core/Core/Src/Boot/Boot_BS2Emu.cpp
Source/Core/Core/Src/IPC_HLE/WII_IPC_HLE_Device_es.cpp
Source/Core/Core/Src/IPC_HLE/WII_IPC_HLE_Device_net.cpp
Diffstat (limited to 'Source/Core/VideoCommon/Src/BPFunctions.cpp')
| -rw-r--r-- | Source/Core/VideoCommon/Src/BPFunctions.cpp | 22 |
1 files changed, 12 insertions, 10 deletions
diff --git a/Source/Core/VideoCommon/Src/BPFunctions.cpp b/Source/Core/VideoCommon/Src/BPFunctions.cpp index 4f7315e832..b9a76ba7b6 100644 --- a/Source/Core/VideoCommon/Src/BPFunctions.cpp +++ b/Source/Core/VideoCommon/Src/BPFunctions.cpp @@ -39,7 +39,7 @@ void FlushPipeline() VertexManager::Flush(); } -void SetGenerationMode(const BPCmd &bp) +void SetGenerationMode() { g_renderer->SetGenerationMode(); } @@ -62,32 +62,34 @@ void SetScissor() TargetRectangle trc = g_renderer->ConvertEFBRectangle(rc); g_renderer->SetScissorRect(trc); + + UpdateViewportWithCorrection(); } -void SetLineWidth(const BPCmd &bp) +void SetLineWidth() { g_renderer->SetLineWidth(); } -void SetDepthMode(const BPCmd &bp) +void SetDepthMode() { g_renderer->SetDepthMode(); } -void SetBlendMode(const BPCmd &bp) +void SetBlendMode() { g_renderer->SetBlendMode(false); } -void SetDitherMode(const BPCmd &bp) +void SetDitherMode() { g_renderer->SetDitherMode(); } -void SetLogicOpMode(const BPCmd &bp) +void SetLogicOpMode() { g_renderer->SetLogicOpMode(); } -void SetColorMask(const BPCmd &bp) +void SetColorMask() { g_renderer->SetColorMask(); } @@ -119,7 +121,7 @@ void CopyEFB(u32 dstAddr, unsigned int dstFormat, unsigned int srcFormat, - convert the RGBA8 color to RGBA6/RGB8/RGB565 and convert it to RGBA8 again - convert the Z24 depth value to Z16 and back to Z24 */ -void ClearScreen(const BPCmd &bp, const EFBRectangle &rc) +void ClearScreen(const EFBRectangle &rc) { bool colorEnable = bpmem.blendmode.colorupdate; bool alphaEnable = bpmem.blendmode.alphaupdate; @@ -152,7 +154,7 @@ void ClearScreen(const BPCmd &bp, const EFBRectangle &rc) } } -void OnPixelFormatChange(const BPCmd &bp) +void OnPixelFormatChange() { int convtype = -1; @@ -234,7 +236,7 @@ bool GetConfig(const int &type) case CONFIG_DISABLEFOG: return g_ActiveConfig.bDisableFog; case CONFIG_SHOWEFBREGIONS: - return false; + return g_ActiveConfig.bShowEFBCopyRegions; default: PanicAlert("GetConfig Error: Unknown Config Type!"); return false; |
