diff options
| author | hrydgard <hrydgard@gmail.com> | 2009-09-13 17:46:33 +0000 |
|---|---|---|
| committer | hrydgard <hrydgard@gmail.com> | 2009-09-13 17:46:33 +0000 |
| commit | a7c70ddb6684aee4dfcbc7ce43f07447fac7761d (patch) | |
| tree | 86a9cf8ffb27cb03733dfa656ee2647d7f93fb22 /Source/Plugins/Plugin_VideoDX9/Src/TextureCache.cpp | |
| parent | 5911abc60010d65d9ed9f18b7637d89cf8fe541b (diff) | |
D3D: Eliminate black borders, add 4:3 and 16:9 settings, and the widescreen hack. Unfortunately this temporarily breaks MSAA (in d3d only) until I have time to fix it.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@4263 8ced0084-cf51-0410-be5f-012b33b47a6e
Diffstat (limited to 'Source/Plugins/Plugin_VideoDX9/Src/TextureCache.cpp')
| -rw-r--r-- | Source/Plugins/Plugin_VideoDX9/Src/TextureCache.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/Plugins/Plugin_VideoDX9/Src/TextureCache.cpp b/Source/Plugins/Plugin_VideoDX9/Src/TextureCache.cpp index 0b659d8596..bc8035b876 100644 --- a/Source/Plugins/Plugin_VideoDX9/Src/TextureCache.cpp +++ b/Source/Plugins/Plugin_VideoDX9/Src/TextureCache.cpp @@ -27,6 +27,7 @@ #include "D3DBase.h" #include "D3DTexture.h" +#include "FramebufferManager.h" #include "Render.h" @@ -104,8 +105,7 @@ TextureCache::TCacheEntry *TextureCache::Load(int stage, u32 address, int width, { if (address == 0) return NULL; - - + u8 *ptr = g_VideoInitialize.pGetMemoryPointer(address); int palSize = TexDecoder_GetPaletteSize(format); @@ -323,7 +323,7 @@ have_texture: LPDIRECT3DSURFACE9 srcSurface, destSurface; tex->GetSurfaceLevel(0, &destSurface); - srcSurface = D3D::GetBackBufferSurface(); + srcSurface = FBManager::GetEFBColorRTSurface(); D3D::dev->StretchRect(srcSurface, &source_rc, destSurface, &dest_rc, D3DTEXF_LINEAR); destSurface->Release(); } |
