mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-09-03 16:16:05 +00:00
This is basicall linux code cleanup. We don not need to pass the X display handle from the video plugin anymore. The wiimote plugins now open their own display handles, and the GUI uses the display handle of the main window frame. Only the window handle from the video plugin is needed. The pWindowHandle variable now passes this instead of the display handle.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5884 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
parent
665d83ed45
commit
02ce753b76
18 changed files with 40 additions and 98 deletions
|
@ -101,9 +101,7 @@ bool g_bStopping = false;
|
|||
bool g_bHwInit = false;
|
||||
bool g_bRealWiimote = false;
|
||||
HWND g_pWindowHandle = NULL;
|
||||
#if defined(HAVE_X11) && HAVE_X11
|
||||
void *g_pXWindow = NULL;
|
||||
#endif
|
||||
|
||||
Common::Thread* g_EmuThread = NULL;
|
||||
|
||||
static Common::Thread* cpuThread = NULL;
|
||||
|
@ -154,13 +152,6 @@ void *GetWindowHandle()
|
|||
return g_pWindowHandle;
|
||||
}
|
||||
|
||||
#if defined HAVE_X11 && HAVE_X11
|
||||
void *GetXWindow()
|
||||
{
|
||||
return g_pXWindow;
|
||||
}
|
||||
#endif
|
||||
|
||||
bool GetRealWiimote()
|
||||
{
|
||||
return g_bRealWiimote;
|
||||
|
@ -370,11 +361,8 @@ THREAD_RETURN EmuThread(void *pArg)
|
|||
|
||||
Plugins.GetVideo()->Initialize(&VideoInitialize); // Call the dll
|
||||
|
||||
// Under linux, this is an X11 Display, not a HWND!
|
||||
// Under linux, this is an X11 Window, not a HWND!
|
||||
g_pWindowHandle = (HWND)VideoInitialize.pWindowHandle;
|
||||
#if defined(HAVE_X11) && HAVE_X11
|
||||
g_pXWindow = (void *)VideoInitialize.pXWindow;
|
||||
#endif
|
||||
Callback_PeekMessages = VideoInitialize.pPeekMessages;
|
||||
g_pUpdateFPSDisplay = VideoInitialize.pUpdateFPSDisplay;
|
||||
|
||||
|
@ -397,20 +385,13 @@ THREAD_RETURN EmuThread(void *pArg)
|
|||
|
||||
Plugins.GetDSP()->Initialize((void *)&dspInit);
|
||||
|
||||
#if defined(HAVE_X11) && HAVE_X11
|
||||
GCPad_Init(g_pXWindow);
|
||||
#else
|
||||
GCPad_Init(g_pWindowHandle);
|
||||
#endif
|
||||
|
||||
// Load and Init WiimotePlugin - only if we are booting in wii mode
|
||||
if (_CoreParameter.bWii)
|
||||
{
|
||||
SWiimoteInitialize WiimoteInitialize;
|
||||
WiimoteInitialize.hWnd = g_pWindowHandle;
|
||||
#if defined(HAVE_X11) && HAVE_X11
|
||||
WiimoteInitialize.pXWindow = g_pXWindow;
|
||||
#endif
|
||||
WiimoteInitialize.ISOId = Ascii2Hex(_CoreParameter.m_strUniqueID);
|
||||
WiimoteInitialize.pLog = Callback_WiimoteLog;
|
||||
WiimoteInitialize.pWiimoteInterruptChannel = Callback_WiimoteInterruptChannel;
|
||||
|
|
|
@ -62,9 +62,7 @@ namespace Core
|
|||
void Callback_WiimoteInterruptChannel(int _number, u16 _channelID, const void* _pData, u32 _Size);
|
||||
|
||||
void* GetWindowHandle();
|
||||
#if defined HAVE_X11 && HAVE_X11
|
||||
void* GetXWindow();
|
||||
#endif
|
||||
|
||||
bool GetRealWiimote();
|
||||
|
||||
extern bool bReadTrace;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue