Patch by omegadox. fixed bloom

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@844 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
daco65 2008-10-12 15:12:51 +00:00
commit c8c160b430
3 changed files with 8 additions and 8 deletions

View file

@ -459,7 +459,7 @@ void Renderer::ReinitView(int nNewWidth, int nNewHeight)
}
int Renderer::GetTargetWidth()
{
if(g_Config.bStretchToFit)
if(g_Config.bStretchToFit && g_Config.renderToMainframe)
return 640;
else
return nBackbufferWidth; // return the actual window width
@ -467,7 +467,7 @@ int Renderer::GetTargetWidth()
int Renderer::GetTargetHeight()
{
if(g_Config.bStretchToFit)
if(g_Config.bStretchToFit && g_Config.renderToMainframe)
return 480;
else
return nBackbufferHeight; // return the actual window height
@ -562,7 +562,7 @@ void Renderer::FlushZBufferAlphaToTarget()
for(int i = 1; i < 8; ++i) TextureMngr::DisableStage(i);
GL_REPORT_ERRORD();
if(g_Config.bStretchToFit)
if(g_Config.bStretchToFit && g_Config.renderToMainframe)
{
//TODO: Do Correctly in a bit
float FactorW = (float)640 / (float)nBackbufferWidth;