mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-24 03:11:09 +00:00
Removed more compiler warnings in linux.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5170 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
parent
ff7da32c6b
commit
beba3b7f5b
22 changed files with 33 additions and 35 deletions
|
@ -482,7 +482,7 @@ void GCPadConfigDialog::CreateGUIControls()
|
|||
};
|
||||
|
||||
// Configuration controls sizes
|
||||
static const int TxtW = 50, TxtH = 20, BtW = 70, BtH = 20;
|
||||
static const int BtW = 70, BtH = 20;
|
||||
// A small type font
|
||||
wxFont m_SmallFont(7, wxFONTFAMILY_DEFAULT, wxFONTSTYLE_NORMAL, wxFONTWEIGHT_NORMAL);
|
||||
|
||||
|
|
|
@ -231,7 +231,7 @@ void GCPadConfigDialog::DoGetButtons(int _GetId)
|
|||
void GCPadConfigDialog::Convert2Box(int &x)
|
||||
{
|
||||
// Border adjustment
|
||||
int BoxW_ = BoxW - 2; int BoxH_ = BoxH - 2;
|
||||
int BoxW_ = BoxW - 2;
|
||||
// Convert values
|
||||
x = (BoxW_ / 2) + (x * BoxW_ / (32767 * 2));
|
||||
}
|
||||
|
|
|
@ -377,8 +377,6 @@ bool PAD_Init_Rumble(u8 _numPAD, SDL_Joystick *SDL_Device)
|
|||
// --------------
|
||||
void PAD_Rumble(u8 _numPAD, unsigned int _uType, unsigned int _uStrength)
|
||||
{
|
||||
int Strenght = 0;
|
||||
|
||||
#ifdef SDL_RUMBLE
|
||||
if (GCMapping[_numPAD].rumble) // rumble activated
|
||||
{
|
||||
|
|
|
@ -124,9 +124,9 @@ bool AnalyzeAndRunDisplayList(u32 address, int size, CachedDisplayList *dl)
|
|||
{
|
||||
int num_xf_reg = 0;
|
||||
int num_cp_reg = 0;
|
||||
int num_bp_reg = 0;
|
||||
//int num_bp_reg = 0; // unused?
|
||||
int num_index_xf = 0;
|
||||
int num_draw_call = 0;
|
||||
//int num_draw_call = 0; // unused?
|
||||
|
||||
u8 *old_datareader = g_pVideoData;
|
||||
g_pVideoData = Memory_GetPtr(address);
|
||||
|
|
|
@ -59,6 +59,10 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|||
|
||||
namespace Clipper
|
||||
{
|
||||
float m_ViewOffset[3];
|
||||
OutputVertexData ClippedVertices[18];
|
||||
OutputVertexData *Vertices[21];
|
||||
|
||||
void Init()
|
||||
{
|
||||
for (int i = 0; i < 18; ++i)
|
||||
|
|
|
@ -35,11 +35,6 @@ namespace Clipper
|
|||
bool CullTest(OutputVertexData *v0, OutputVertexData *v1, OutputVertexData *v2, bool &backface);
|
||||
|
||||
void PerspectiveDivide(OutputVertexData *vertex);
|
||||
|
||||
static float m_ViewOffset[3];
|
||||
|
||||
static OutputVertexData ClippedVertices[18];
|
||||
static OutputVertexData *Vertices[21];
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -124,7 +124,7 @@ void DumpEfb(const char* filename)
|
|||
*(writePtr++) = sample[3];
|
||||
}
|
||||
|
||||
bool result = SaveTGA(filename, EFB_WIDTH, EFB_HEIGHT, data);
|
||||
SaveTGA(filename, EFB_WIDTH, EFB_HEIGHT, data);
|
||||
|
||||
delete []data;
|
||||
}
|
||||
|
@ -144,7 +144,7 @@ void DumpDepth(const char* filename)
|
|||
*(writePtr++) = 255;
|
||||
}
|
||||
|
||||
bool result = SaveTGA(filename, EFB_WIDTH, EFB_HEIGHT, data);
|
||||
SaveTGA(filename, EFB_WIDTH, EFB_HEIGHT, data);
|
||||
|
||||
delete []data;
|
||||
}
|
||||
|
|
|
@ -149,7 +149,7 @@ bool OpenGL_ReportFBOError(const char *function, const char *file, int line);
|
|||
#if defined(_DEBUG) || defined(DEBUGFAST)
|
||||
#define GL_REPORT_ERRORD() OpenGL_ReportGLError(__FUNCTION__, __FILE__, __LINE__)
|
||||
#else
|
||||
#define GL_REPORT_ERRORD() GL_NO_ERROR
|
||||
#define GL_REPORT_ERRORD()
|
||||
#endif
|
||||
|
||||
#endif // GLTEST ??
|
||||
|
|
|
@ -32,6 +32,10 @@
|
|||
|
||||
namespace Rasterizer
|
||||
{
|
||||
Slope ZSlope;
|
||||
Slope WSlope;
|
||||
Slope ColorSlopes[2][4];
|
||||
Slope TexSlopes[8][3];
|
||||
|
||||
s32 scissorLeft = 0;
|
||||
s32 scissorTop = 0;
|
||||
|
|
|
@ -40,10 +40,6 @@ namespace Rasterizer
|
|||
float GetValue(s32 x, s32 y) { return f0 + (dfdx * (x - x0)) + (dfdy * (y - y0)); }
|
||||
};
|
||||
|
||||
static Slope ZSlope;
|
||||
static Slope WSlope;
|
||||
static Slope ColorSlopes[2][4];
|
||||
static Slope TexSlopes[8][3];
|
||||
}
|
||||
|
||||
#endif
|
||||
|
|
|
@ -98,7 +98,7 @@ void Sample(float s, float t, float lod, u8 texmap, u8 *sample)
|
|||
u8 *imageSrc = g_VideoInitialize.pGetMemoryPointer(imageBase);
|
||||
|
||||
bool linear = false;
|
||||
if (lod > 0 && tm0.min_filter > 4 || lod <= 0 && tm0.mag_filter)
|
||||
if ((lod > 0 && tm0.min_filter > 4) || (lod <= 0 && tm0.mag_filter))
|
||||
linear = true;
|
||||
|
||||
if (linear)
|
||||
|
|
|
@ -245,7 +245,7 @@ void WiimotePadConfigDialog::DoGetButtons(int _GetId)
|
|||
void WiimotePadConfigDialog::Convert2Box(int &x)
|
||||
{
|
||||
// Border adjustment
|
||||
int BoxW_ = BoxW - 2; int BoxH_ = BoxH - 2;
|
||||
int BoxW_ = BoxW - 2;
|
||||
// Convert values
|
||||
x = (BoxW_ / 2) + (x * BoxW_ / (32767 * 2));
|
||||
}
|
||||
|
|
|
@ -139,8 +139,8 @@ void WiimoteRecordingConfigDialog::RecordingChanged(wxCommandEvent& event)
|
|||
void WiimoteRecordingConfigDialog::UpdateRecordingGUI(int Slot)
|
||||
{
|
||||
// Disable all recording buttons
|
||||
bool ActiveRecording = !(m_bWaitForRecording || m_bRecording);
|
||||
#ifdef _WIN32
|
||||
bool ActiveRecording = !(m_bWaitForRecording || m_bRecording);
|
||||
for(int i = IDB_RECORD + 1; i < (IDB_RECORD + RECORDING_ROWS + 1); i++)
|
||||
if(ControlsCreated) m_PageRecording->FindItem(i)->Enable(ActiveRecording);
|
||||
#endif
|
||||
|
|
|
@ -373,8 +373,6 @@ bool PAD_Init_Rumble(u8 _numPAD, SDL_Joystick *SDL_Device)
|
|||
// --------------
|
||||
void PAD_Rumble(u8 _numPAD, unsigned int _uType)
|
||||
{
|
||||
int Strenght = 0;
|
||||
|
||||
#ifdef SDL_RUMBLE
|
||||
if (WiiMapping[_numPAD].Rumble) // rumble activated
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue