mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-02-04 03:46:42 +01:00
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:
parent
3034a9fcfc
commit
3c41c4dacf
@ -131,12 +131,12 @@ void GFXConfigDialogOGL::CloseClick(wxCommandEvent& WXUNUSED (event))
|
|||||||
///////////////////////////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
// Add avaliable resolutions and other settings
|
// Add avaliable resolutions and other settings
|
||||||
// ---------------
|
// ---------------
|
||||||
void GFXConfigDialogOGL::AddFSReso(char *reso)
|
void GFXConfigDialogOGL::AddFSReso(const char *reso)
|
||||||
{
|
{
|
||||||
arrayStringFor_FullscreenCB.Add(wxString::FromAscii(reso));
|
arrayStringFor_FullscreenCB.Add(wxString::FromAscii(reso));
|
||||||
}
|
}
|
||||||
|
|
||||||
void GFXConfigDialogOGL::AddWindowReso(char *reso)
|
void GFXConfigDialogOGL::AddWindowReso(const char *reso)
|
||||||
{
|
{
|
||||||
arrayStringFor_WindowResolutionCB.Add(wxString::FromAscii(reso));
|
arrayStringFor_WindowResolutionCB.Add(wxString::FromAscii(reso));
|
||||||
}
|
}
|
||||||
|
@ -58,8 +58,8 @@ class GFXConfigDialogOGL : public wxDialog
|
|||||||
virtual ~GFXConfigDialogOGL();
|
virtual ~GFXConfigDialogOGL();
|
||||||
void CloseClick(wxCommandEvent& event);
|
void CloseClick(wxCommandEvent& event);
|
||||||
|
|
||||||
void AddFSReso(char *reso);
|
void AddFSReso(const char *reso);
|
||||||
void AddWindowReso(char *reso);
|
void AddWindowReso(const char *reso);
|
||||||
void CreateGUIControls();
|
void CreateGUIControls();
|
||||||
void GameIniLoad();
|
void GameIniLoad();
|
||||||
// Combo box lists, this one needs to be public
|
// Combo box lists, this one needs to be public
|
||||||
|
@ -93,7 +93,6 @@ static FILE* f_pFrameDump;
|
|||||||
static int s_MSAASamples = 1;
|
static int s_MSAASamples = 1;
|
||||||
static int s_MSAACoverageSamples = 0;
|
static int s_MSAACoverageSamples = 0;
|
||||||
|
|
||||||
static bool s_bHaveStencilBuffer = false;
|
|
||||||
bool s_bHaveFramebufferBlit = false; // export to FramebufferManager.cpp
|
bool s_bHaveFramebufferBlit = false; // export to FramebufferManager.cpp
|
||||||
static bool s_bHaveCoverageMSAA = false;
|
static bool s_bHaveCoverageMSAA = false;
|
||||||
static u32 s_blendMode;
|
static u32 s_blendMode;
|
||||||
@ -644,9 +643,6 @@ void ComputeBackbufferRectangle(TRectangle *rc)
|
|||||||
// The new width and height
|
// The new width and height
|
||||||
FloatGLWidth = FloatGLWidth * Ratio;
|
FloatGLWidth = FloatGLWidth * Ratio;
|
||||||
FloatGLHeight = FloatGLHeight * 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
|
// Adjust the X and Y offset
|
||||||
FloatXOffset = FloatXOffset - (IncreasedWidth / 2.0);
|
FloatXOffset = FloatXOffset - (IncreasedWidth / 2.0);
|
||||||
FloatYOffset = FloatYOffset - (IncreasedHeight / 2.0);
|
FloatYOffset = FloatYOffset - (IncreasedHeight / 2.0);
|
||||||
@ -724,6 +720,7 @@ void Renderer::Swap(u32 xfbAddr, u32 srcWidth, u32 srcHeight, s32 yOffset)
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
u_max = (float)xfbSource->texWidth;
|
u_max = (float)xfbSource->texWidth;
|
||||||
|
v_min = 0.f;
|
||||||
v_max = (float)xfbSource->texHeight;
|
v_max = (float)xfbSource->texHeight;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -174,7 +174,6 @@ void Write32BitSwizzler(char*& p, u32 format)
|
|||||||
|
|
||||||
float blkW = (float)GetBlockWidthInTexels(format);
|
float blkW = (float)GetBlockWidthInTexels(format);
|
||||||
float blkH = (float)GetBlockHeightInTexels(format);
|
float blkH = (float)GetBlockHeightInTexels(format);
|
||||||
float samples = (float)GetEncodedSampleCount(format);
|
|
||||||
|
|
||||||
// 32 bit textures (RGBA8 and Z24) are store in 2 cache line increments
|
// 32 bit textures (RGBA8 and Z24) are store in 2 cache line increments
|
||||||
|
|
||||||
|
@ -158,7 +158,7 @@ void Shutdown()
|
|||||||
s_rgbToYuyvProgram.Destroy();
|
s_rgbToYuyvProgram.Destroy();
|
||||||
s_yuyvToRgbProgram.Destroy();
|
s_yuyvToRgbProgram.Destroy();
|
||||||
|
|
||||||
for (int i = 0; i < NUM_ENCODING_PROGRAMS; i++)
|
for (unsigned int i = 0; i < NUM_ENCODING_PROGRAMS; i++)
|
||||||
s_encodingPrograms[i].Destroy();
|
s_encodingPrograms[i].Destroy();
|
||||||
|
|
||||||
s_srcTexture = 0;
|
s_srcTexture = 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user