mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-06 16:18:58 +00:00
Stretch to Fit option works in separate render window now.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@946 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
parent
dc5eaad82c
commit
63f3e1ab8c
3 changed files with 6 additions and 6 deletions
|
@ -468,7 +468,7 @@ void Renderer::ReinitView(int nNewWidth, int nNewHeight)
|
|||
}
|
||||
int Renderer::GetTargetWidth()
|
||||
{
|
||||
if(g_Config.bStretchToFit && g_Config.renderToMainframe)
|
||||
if(g_Config.bStretchToFit)
|
||||
return 640;
|
||||
else
|
||||
return nBackbufferWidth; // return the actual window width
|
||||
|
@ -476,7 +476,7 @@ int Renderer::GetTargetWidth()
|
|||
|
||||
int Renderer::GetTargetHeight()
|
||||
{
|
||||
if(g_Config.bStretchToFit && g_Config.renderToMainframe)
|
||||
if(g_Config.bStretchToFit)
|
||||
return 480;
|
||||
else
|
||||
return nBackbufferHeight; // return the actual window height
|
||||
|
@ -571,7 +571,7 @@ void Renderer::FlushZBufferAlphaToTarget()
|
|||
for(int i = 1; i < 8; ++i) TextureMngr::DisableStage(i);
|
||||
GL_REPORT_ERRORD();
|
||||
|
||||
if(g_Config.bStretchToFit && g_Config.renderToMainframe)
|
||||
if(g_Config.bStretchToFit)
|
||||
{
|
||||
//TODO: Do Correctly in a bit
|
||||
float FactorW = (float)640 / (float)nBackbufferWidth;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue