From 9e17ee5155e6808240bb9dbcdf86fcbe3ca30498 Mon Sep 17 00:00:00 2001 From: luisr142004 Date: Mon, 30 Nov 2009 03:48:59 +0000 Subject: [PATCH] fix a linux wiimote compile error and apply some little changes to the dx plugin :P git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@4631 8ced0084-cf51-0410-be5f-012b33b47a6e --- Source/Core/DolphinWX/Src/Main.cpp | 6 +-- .../Plugin_VideoDX9/Plugin_VideoDX9.vcproj | 3 +- .../Plugin_VideoDX9/Src/DlgSettings.cpp | 18 ++++----- .../Src/W32Util/PropertySheet.cpp | 37 ++++++++----------- .../Plugins/Plugin_VideoDX9/Src/resource.rc | 14 +------ .../Plugins/Plugin_Wiimote/Src/FillReport.cpp | 4 +- 6 files changed, 34 insertions(+), 48 deletions(-) diff --git a/Source/Core/DolphinWX/Src/Main.cpp b/Source/Core/DolphinWX/Src/Main.cpp index 66ceb92b5f..9cef859181 100644 --- a/Source/Core/DolphinWX/Src/Main.cpp +++ b/Source/Core/DolphinWX/Src/Main.cpp @@ -619,12 +619,10 @@ void Host_SetDebugMode(bool) void Host_SetWaitCursor(bool enable) { #ifdef _WIN32 - if (enable) + if(enable) { SetCursor(LoadCursor(NULL, IDC_WAIT)); - } - else - { + } else { SetCursor(LoadCursor(NULL, IDC_ARROW)); } #endif diff --git a/Source/Plugins/Plugin_VideoDX9/Plugin_VideoDX9.vcproj b/Source/Plugins/Plugin_VideoDX9/Plugin_VideoDX9.vcproj index f4b0540b8f..fb632476e3 100644 --- a/Source/Plugins/Plugin_VideoDX9/Plugin_VideoDX9.vcproj +++ b/Source/Plugins/Plugin_VideoDX9/Plugin_VideoDX9.vcproj @@ -1,7 +1,7 @@ +#include "afxres.h" ///////////////////////////////////////////////////////////////////////////// #undef APSTUDIO_READONLY_SYMBOLS @@ -185,7 +185,7 @@ END 2 TEXTINCLUDE BEGIN - "#include -///////////////////////////////////////////////////////////////////////////// -#endif // not APSTUDIO_INVOKED - diff --git a/Source/Plugins/Plugin_Wiimote/Src/FillReport.cpp b/Source/Plugins/Plugin_Wiimote/Src/FillReport.cpp index 8d419c0916..b8b99fbec8 100644 --- a/Source/Plugins/Plugin_Wiimote/Src/FillReport.cpp +++ b/Source/Plugins/Plugin_Wiimote/Src/FillReport.cpp @@ -302,7 +302,9 @@ int GetMapKeyState(int _MapKey) const int Page = 0; if (_MapKey < 256) +#ifdef WIN32 return GetAsyncKeyState(_MapKey); // Keyboard +#endif else if (_MapKey < 0x1100) return SDL_JoystickGetButton(PadState[Page].joy, _MapKey - 0x1000); // Pad button else // Pad hat @@ -320,7 +322,7 @@ int GetMapKeyState(int _MapKey) // Multi System Input Status Check int IsKey(int Key) { -#ifdef _WIN32 +#ifdef WIN32 if (g_Wiimote_kbd.A <= Key && Key <= g_Wiimote_kbd.PITCH_R) { return GetMapKeyState(PadMapping[0].Wm.keyForControls[Key - g_Wiimote_kbd.A]);