more small fixes

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@1426 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
nakeee
2008-12-07 19:09:14 +00:00
parent fcfb8ffdd5
commit 0b7252b8f5
8 changed files with 24 additions and 37 deletions

View File

@ -158,10 +158,6 @@ if env['lint']:
# add the warnings to the compile flags # add the warnings to the compile flags
compileFlags += [ '-W' + warning for warning in warnings ] compileFlags += [ '-W' + warning for warning in warnings ]
# Handle the compilers
CC = env['CC'],
CXX = env['CXX'],
env['CCFLAGS'] = compileFlags env['CCFLAGS'] = compileFlags
env['CXXFLAGS'] = compileFlags + [ '-fvisibility-inlines-hidden' ] env['CXXFLAGS'] = compileFlags + [ '-fvisibility-inlines-hidden' ]
env['CPPDEFINES'] = cppDefines env['CPPDEFINES'] = cppDefines

View File

@ -80,7 +80,7 @@ void OpenGL_SetWindowText(const char *text)
cocoaGLSetTitle(); cocoaGLSetTitle();
#elif defined(_WIN32) #elif defined(_WIN32)
SetWindowText(EmuWindow::GetWnd(), text); SetWindowText(EmuWindow::GetWnd(), text);
#else // GLX #elif defined(HAVE_X11) && HAVE_X11 // GLX
/** /**
* Tell X to ask the window manager to set the window title. (X * Tell X to ask the window manager to set the window title. (X
* itself doesn't provide window title functionality.) * itself doesn't provide window title functionality.)
@ -95,15 +95,7 @@ unsigned int Callback_PeekMessages()
BOOL Callback_PeekMessages() BOOL Callback_PeekMessages()
#endif #endif
{ {
#if USE_SDL #ifdef _WIN32
// TODO: There is no documentation of this function and the calling code
// ignores the return value, so I have no idea what would be the
// proper value to return.
return FALSE;
#elif defined(OSX64)
//TODO
return FALSE;
#elif defined(_WIN32)
//TODO: peekmessage //TODO: peekmessage
MSG msg; MSG msg;
while (PeekMessage(&msg, 0, 0, 0, PM_REMOVE)) while (PeekMessage(&msg, 0, 0, 0, PM_REMOVE))
@ -114,9 +106,7 @@ BOOL Callback_PeekMessages()
DispatchMessage(&msg); DispatchMessage(&msg);
} }
return TRUE; return TRUE;
#else // GLX #else
// This is called from Outside of our video thread, from EmuThread
// The calls are NOT thread safe, so it breaks everything
return FALSE; return FALSE;
#endif #endif
} }
@ -329,7 +319,7 @@ bool OpenGL_Create(SVideoInitialize &_VideoInitialize, int _iwidth, int _iheight
return false; return false;
} }
#else // GLX #elif defined(HAVE_X11) && HAVE_X11
XVisualInfo *vi; XVisualInfo *vi;
Colormap cmap; Colormap cmap;
int dpyWidth, dpyHeight; int dpyWidth, dpyHeight;
@ -689,7 +679,8 @@ void OpenGL_Shutdown()
{ {
if (!wglMakeCurrent(NULL,NULL)) // Are We Able To Release The DC And RC Contexts? if (!wglMakeCurrent(NULL,NULL)) // Are We Able To Release The DC And RC Contexts?
{ {
// [F|RES]: if this fails i dont see the message box and cant get out of the modal state // [F|RES]: if this fails i dont see the message box and
cant get out of the modal state
// so i disable it. This function fails only if i render to main window // so i disable it. This function fails only if i render to main window
// MessageBox(NULL,"Release Of DC And RC Failed.", "SHUTDOWN ERROR", MB_OK | MB_ICONINFORMATION); // MessageBox(NULL,"Release Of DC And RC Failed.", "SHUTDOWN ERROR", MB_OK | MB_ICONINFORMATION);
} }
@ -706,7 +697,7 @@ void OpenGL_Shutdown()
MessageBox(NULL,"Release Device Context Failed.", "SHUTDOWN ERROR", MB_OK | MB_ICONINFORMATION); MessageBox(NULL,"Release Device Context Failed.", "SHUTDOWN ERROR", MB_OK | MB_ICONINFORMATION);
hDC = NULL; // Set DC To NULL hDC = NULL; // Set DC To NULL
} }
#else // GLX #elif defined(HAVE_X11) && HAVE_X11
if (GLWin.ctx) if (GLWin.ctx)
{ {
if (!glXMakeCurrent(GLWin.dpy, None, NULL)) if (!glXMakeCurrent(GLWin.dpy, None, NULL))

View File

@ -34,7 +34,7 @@
#define ARRAYSIZE(A) (sizeof(A)/sizeof((A)[0])) #define ARRAYSIZE(A) (sizeof(A)/sizeof((A)[0]))
#define I_NEED_OS2_H // HAXXOR #define I_NEED_OS2_H // HAXXOR
//#include <GL/glew.h> //#include <GL/glew.h>
#if !defined(OSX64) #if defined(HAVE_X11) && HAVE_X11
#include <GL/glxew.h> #include <GL/glxew.h>
#else #else
#undef BOOL #undef BOOL

View File

@ -15,7 +15,7 @@
// Official SVN repository and contact information can be found at // Official SVN repository and contact information can be found at
// http://code.google.com/p/dolphin-emu/ // http://code.google.com/p/dolphin-emu/
#if !defined(OSX64) #if defined(HAVE_WX) && HAVE_WX
#include <wx/wx.h> #include <wx/wx.h>
#include <wx/filepicker.h> #include <wx/filepicker.h>
#include <wx/notebook.h> #include <wx/notebook.h>

View File

@ -33,7 +33,7 @@
#endif #endif
#if !defined(OSX64) #if defined(HAVE_WX) && HAVE_WX
#include "../Debugger/Debugger.h" // for the CDebugger class #include "../Debugger/Debugger.h" // for the CDebugger class
#include "../Debugger/PBView.h" #include "../Debugger/PBView.h"
#include "Console.h" // open and close console, clear console window #include "Console.h" // open and close console, clear console window
@ -72,7 +72,7 @@ std::vector<u16> viupd(15); // the length of the update frequency bar
// --------------------------------------------------------------------------------------- // ---------------------------------------------------------------------------------------
// Classes // Classes
// ------------- // -------------
#if !defined(OSX64) #if defined(HAVE_WX) && HAVE_WX
extern CDebugger* m_frame; extern CDebugger* m_frame;
#endif #endif
@ -145,7 +145,7 @@ void Logging(int a)
{ {
std::string sfbuff; std::string sfbuff;
sfbuff = sfbuff + writeMessage(ii, 0); sfbuff = sfbuff + writeMessage(ii, 0);
#if !defined(OSX64) #if defined(HAVE_WX) && HAVE_WX
aprintf(ii, (char *)sfbuff.c_str()); aprintf(ii, (char *)sfbuff.c_str());
#endif #endif
} }
@ -258,7 +258,7 @@ void Logging(int a)
// ======================================================================================= // =======================================================================================
// Print // Print
// ---------------- // ----------------
#if !defined(OSX64) #if defined(HAVE_WX) && HAVE_WX
ClearScreen(); ClearScreen();
#endif #endif
__Log("%s", sbuff.c_str()); __Log("%s", sbuff.c_str());

View File

@ -42,7 +42,7 @@
#include "VertexLoaderManager.h" #include "VertexLoaderManager.h"
#include "VertexLoader.h" #include "VertexLoader.h"
#include "XFB.h" #include "XFB.h"
#if !defined(OSX64) #if defined(HAVE_WX) && HAVE_WX
#include "Debugger/Debugger.h" // for the CDebugger class #include "Debugger/Debugger.h" // for the CDebugger class
#endif #endif
#include "Logging/Logging.h" // for Logging() #include "Logging/Logging.h" // for Logging()
@ -63,7 +63,7 @@ struct MESSAGE
CGcontext g_cgcontext; CGcontext g_cgcontext;
CGprofile g_cgvProf, g_cgfProf; CGprofile g_cgvProf, g_cgfProf;
#if !defined(OSX64) #if defined(HAVE_WX) && HAVE_WX
extern CDebugger* m_frame; // the debugging class extern CDebugger* m_frame; // the debugging class
#endif #endif
@ -852,7 +852,7 @@ void Renderer::SwapBuffers()
} }
// Write logging data to debugger // Write logging data to debugger
#if !defined(OSX64) #if defined(HAVE_WX) && HAVE_WX
if(m_frame) if(m_frame)
{ {
Logging(0); Logging(0);

View File

@ -25,7 +25,7 @@
#include <SDL.h> #include <SDL.h>
#endif #endif
#if !defined(OSX64) #if defined(HAVE_WX) && HAVE_WX
#include "GUI/ConfigDlg.h" #include "GUI/ConfigDlg.h"
#endif #endif
@ -154,7 +154,7 @@ void DllConfig(HWND _hParent)
frame->ShowModal(); frame->ShowModal();
//win.SetHWND(0); //win.SetHWND(0);
#elif defined(__linux__) #elif defined(HAVE_WX) && HAVE_WX
ConfigDialog frame(NULL); ConfigDialog frame(NULL);
g_Config.Load(); g_Config.Load();
int glxMajorVersion, glxMinorVersion; int glxMajorVersion, glxMinorVersion;

View File

@ -16,15 +16,15 @@
// http://code.google.com/p/dolphin-emu/ // http://code.google.com/p/dolphin-emu/
#if !defined(OSX64)
#include <wx/aboutdlg.h>
#include "ConfigDlg.h"
#endif
#include "Common.h" #include "Common.h"
#include "Config.h" #include "Config.h"
#include "StringUtil.h" #include "StringUtil.h"
#if defined(HAVE_WX) && HAVE_WX
#include <wx/aboutdlg.h>
#include "ConfigDlg.h"
#endif
#include "pluginspecs_wiimote.h" #include "pluginspecs_wiimote.h"
#include "EmuMain.h" #include "EmuMain.h"
@ -102,7 +102,7 @@ extern "C" void GetDllInfo (PLUGIN_INFO* _PluginInfo)
extern "C" void DllAbout(HWND _hParent) extern "C" void DllAbout(HWND _hParent)
{ {
#if !defined(OSX64) #if defined(HAVE_WX) && HAVE_WX
wxAboutDialogInfo info; wxAboutDialogInfo info;
info.SetName(_T("Wiimote plug-in")); info.SetName(_T("Wiimote plug-in"));
info.AddDeveloper(_T("masken (masken3@gmail.com)")); info.AddDeveloper(_T("masken (masken3@gmail.com)"));