mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-02-11 06:59:07 +01:00
Silence gcc warnings about empty statements and out-of-order initializers.
Increase ISO properties window size to make room for the new Gecko codes. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6050 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
parent
e9424bcafa
commit
7ddf0aa711
@ -36,7 +36,7 @@
|
|||||||
#include "../../Common/Src/OpenCL.h"
|
#include "../../Common/Src/OpenCL.h"
|
||||||
|
|
||||||
#ifdef __APPLE__
|
#ifdef __APPLE__
|
||||||
#include <Cocoa/Cocoa.h>
|
#include <ApplicationServices/ApplicationServices.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
extern CFrame* main_frame;
|
extern CFrame* main_frame;
|
||||||
|
@ -524,9 +524,9 @@ void CISOProperties::CreateGUIControls(bool IsWad)
|
|||||||
sMain = new wxBoxSizer(wxVERTICAL);
|
sMain = new wxBoxSizer(wxVERTICAL);
|
||||||
sMain->Add(m_Notebook, 1, wxEXPAND|wxALL, 5);
|
sMain->Add(m_Notebook, 1, wxEXPAND|wxALL, 5);
|
||||||
sMain->Add(sButtons, 0, wxEXPAND, 5);
|
sMain->Add(sButtons, 0, wxEXPAND, 5);
|
||||||
sMain->SetMinSize(wxSize(400, 600));
|
sMain->SetMinSize(wxSize(550, 600));
|
||||||
|
|
||||||
m_Notebook->SetMaxSize(wxSize(400, 600));
|
m_Notebook->SetMaxSize(wxSize(550, 600));
|
||||||
SetSizerAndFit(sMain);
|
SetSizerAndFit(sMain);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -32,9 +32,9 @@ class IUCode
|
|||||||
public:
|
public:
|
||||||
IUCode(CMailHandler& _rMailHandler)
|
IUCode(CMailHandler& _rMailHandler)
|
||||||
: m_rMailHandler(_rMailHandler)
|
: m_rMailHandler(_rMailHandler)
|
||||||
|
, m_UploadSetupInProgress(false)
|
||||||
, m_NextUCode()
|
, m_NextUCode()
|
||||||
, m_NextUCode_steps(0)
|
, m_NextUCode_steps(0)
|
||||||
, m_UploadSetupInProgress(false)
|
|
||||||
, m_NeedsResumeMail(false)
|
, m_NeedsResumeMail(false)
|
||||||
{}
|
{}
|
||||||
|
|
||||||
|
@ -117,15 +117,15 @@ GLuint OpenGL_ReportGLError(const char *function, const char *file, int line);
|
|||||||
bool OpenGL_ReportFBOError(const char *function, const char *file, int line);
|
bool OpenGL_ReportFBOError(const char *function, const char *file, int line);
|
||||||
|
|
||||||
#if defined(_DEBUG) || defined(DEBUGFAST)
|
#if defined(_DEBUG) || defined(DEBUGFAST)
|
||||||
#define GL_REPORT_ERROR() OpenGL_ReportGLError (__FUNCTION__, __FILE__, __LINE__)
|
#define GL_REPORT_ERROR() OpenGL_ReportGLError(__FUNCTION__, __FILE__, __LINE__)
|
||||||
#define GL_REPORT_PROGRAM_ERROR() OpenGL_ReportARBProgramError()
|
|
||||||
#define GL_REPORT_FBO_ERROR() OpenGL_ReportFBOError (__FUNCTION__, __FILE__, __LINE__)
|
|
||||||
#define GL_REPORT_ERRORD() OpenGL_ReportGLError(__FUNCTION__, __FILE__, __LINE__)
|
#define GL_REPORT_ERRORD() OpenGL_ReportGLError(__FUNCTION__, __FILE__, __LINE__)
|
||||||
|
#define GL_REPORT_FBO_ERROR() OpenGL_ReportFBOError(__FUNCTION__, __FILE__, __LINE__)
|
||||||
|
#define GL_REPORT_PROGRAM_ERROR() OpenGL_ReportARBProgramError()
|
||||||
#else
|
#else
|
||||||
#define GL_REPORT_ERROR() GL_NO_ERROR
|
#define GL_REPORT_ERROR() GL_NO_ERROR
|
||||||
#define GL_REPORT_PROGRAM_ERROR()
|
#define GL_REPORT_ERRORD() (void)GL_NO_ERROR
|
||||||
#define GL_REPORT_FBO_ERROR()
|
#define GL_REPORT_FBO_ERROR() (void)true
|
||||||
#define GL_REPORT_ERRORD()
|
#define GL_REPORT_PROGRAM_ERROR() (void)0
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined __APPLE__ || defined __linux__ || defined _WIN32
|
#if defined __APPLE__ || defined __linux__ || defined _WIN32
|
||||||
|
@ -144,7 +144,7 @@ void AddVertices(int primitive, int numvertices)
|
|||||||
{
|
{
|
||||||
if (numvertices <= 0)
|
if (numvertices <= 0)
|
||||||
return;
|
return;
|
||||||
GL_REPORT_ERROR();
|
(void)GL_REPORT_ERROR();
|
||||||
switch (primitive)
|
switch (primitive)
|
||||||
{
|
{
|
||||||
case GX_DRAW_QUADS:
|
case GX_DRAW_QUADS:
|
||||||
@ -233,9 +233,7 @@ void Flush()
|
|||||||
|
|
||||||
DVSTARTPROFILE();
|
DVSTARTPROFILE();
|
||||||
|
|
||||||
GL_REPORT_ERROR();
|
(void)GL_REPORT_ERROR();
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
glBindBuffer(GL_ARRAY_BUFFER, s_vboBuffers[s_nCurVBOIndex]);
|
glBindBuffer(GL_ARRAY_BUFFER, s_vboBuffers[s_nCurVBOIndex]);
|
||||||
glBufferData(GL_ARRAY_BUFFER, s_pCurBufferPointer - LocalVBuffer, LocalVBuffer, GL_STREAM_DRAW);
|
glBufferData(GL_ARRAY_BUFFER, s_pCurBufferPointer - LocalVBuffer, LocalVBuffer, GL_STREAM_DRAW);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user