Fixed more compiler warnings, and revised the syntax of the fix of r2567.

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@2570 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
Marcus Wanners 2009-03-06 18:02:41 +00:00
parent 658679876e
commit 3ee3602714
2 changed files with 7 additions and 5 deletions

View File

@ -476,12 +476,14 @@ void UpdateViewport()
int scissorXOff = bpmem.scissorOffset.x * 2 - 342;
int scissorYOff = bpmem.scissorOffset.y * 2 - 342;
float fourThree = 4.0f / 3.0f;
float wAdj, hAdj;
float actualRatiow, actualRatioh;
int overfl;
// These were commented out to fix "unreferenced local variable" compiler warnings.
// float wAdj, hAdj;
// float actualRatiow, actualRatioh;
// int overfl;
// int actualWid, actualHei;
int xoffs = 0;
int yoffs = 0;
int wid, hei, actualWid, actualHei;
int wid, hei;
vp.MinZ = (xfregs.rawViewport[5] - xfregs.rawViewport[2])/16777215.0f;
vp.MaxZ = xfregs.rawViewport[5]/16777215.0f;

View File

@ -1086,7 +1086,7 @@ void Renderer::SwapBuffers()
if (timeGetTime() - lasttime > 1000)
{
lasttime = timeGetTime();
s_fps = (fpscount-1);
s_fps = fpscount - 1;
fpscount = 0;
}