Misc warning fixes.

One of the fixes in 
Source/Plugins/Plugin_VideoOGL/Src/Render.cpp (for an uninitialized 
variable) looks like it could actually have real-world effects; someone 
familiar with the code should check that the fix is correct.



git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@3669 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
magumagu9
2009-07-03 23:53:20 +00:00
parent 3034a9fcfc
commit 3c41c4dacf
5 changed files with 6 additions and 10 deletions

View File

@ -93,7 +93,6 @@ static FILE* f_pFrameDump;
static int s_MSAASamples = 1;
static int s_MSAACoverageSamples = 0;
static bool s_bHaveStencilBuffer = false;
bool s_bHaveFramebufferBlit = false; // export to FramebufferManager.cpp
static bool s_bHaveCoverageMSAA = false;
static u32 s_blendMode;
@ -644,9 +643,6 @@ void ComputeBackbufferRectangle(TRectangle *rc)
// The new width and height
FloatGLWidth = FloatGLWidth * Ratio;
FloatGLHeight = FloatGLHeight * Ratio;
// The new width and height ratio
float WidthRatio = ((float)FloatGLWidth) / 640.0;
float HeightRatio = ((float)FloatGLHeight) / 480.0;
// Adjust the X and Y offset
FloatXOffset = FloatXOffset - (IncreasedWidth / 2.0);
FloatYOffset = FloatYOffset - (IncreasedHeight / 2.0);
@ -724,6 +720,7 @@ void Renderer::Swap(u32 xfbAddr, u32 srcWidth, u32 srcHeight, s32 yOffset)
else
{
u_max = (float)xfbSource->texWidth;
v_min = 0.f;
v_max = (float)xfbSource->texHeight;
}