some minor bug fixes to my last commit and uncommented one line that was commented by error

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@4922 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
Rodolfo Osvaldo Bogado
2010-01-21 22:32:24 +00:00
parent a43428253b
commit 8c2bae9802
2 changed files with 6 additions and 6 deletions

View File

@ -267,15 +267,15 @@ bool Renderer::Init()
s_backbuffer_height = D3D::GetBackBufferHeight();
// TODO: Grab target width from configured resolution?
s_target_width = s_backbuffer_width * EFB_WIDTH / 640;
s_target_height = s_backbuffer_height * EFB_HEIGHT / 480;
s_target_width = s_backbuffer_width;
s_target_height = s_backbuffer_height * ((float)EFB_HEIGHT / 480.0f);
xScale = (float)s_target_width / (float)EFB_WIDTH;
yScale = (float)s_target_height / (float)EFB_HEIGHT;
s_Fulltarget_width = s_backbuffer_width;
s_Fulltarget_height = s_backbuffer_height;
s_Fulltarget_width = s_target_width;
s_Fulltarget_height = s_target_height;
//apply automatic resizing only is not an ati card, ati can handle large viewports :)
AUTO_ADJUST_RENDERTARGET_SIZE = true;//!D3D::IsATIDevice();
AUTO_ADJUST_RENDERTARGET_SIZE = !D3D::IsATIDevice();
s_LastFrameDumped = false;
s_AVIDumping = false;