diff --git a/desmume/src/windows/main.cpp b/desmume/src/windows/main.cpp index c3ff19a16..80259d5e9 100644 --- a/desmume/src/windows/main.cpp +++ b/desmume/src/windows/main.cpp @@ -83,10 +83,6 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA using namespace std; -#include - -using namespace Gdiplus; - #define HAVE_REMOTE #define WPCAP #define PACKET_SIZE 65535 @@ -1262,17 +1258,6 @@ int WINAPI WinMain (HINSTANCE hThisInstance, { driver = new WinDriver(); - ULONG_PTR GdiplusToken; - GdiplusStartupInput GdiplusSI; - - GdiplusSI.GdiplusVersion = 1; - - if(GdiplusStartup(&GdiplusToken, &GdiplusSI, NULL) != Ok) - { - MessageBox(0, "Failed to initialize GDI+ !", "Severe error", MB_OK | MB_ICONERROR); - return 1; - } - InitializeCriticalSection(&win_sync); #ifdef GDB_STUB @@ -1634,8 +1619,6 @@ int WINAPI WinMain (HINSTANCE hThisInstance, CloseConsole(); - GdiplusShutdown(GdiplusToken); - return 0; } @@ -3460,5 +3443,3 @@ LRESULT CALLBACK SoundSettingsDlgProc(HWND hDlg, UINT uMsg, WPARAM wParam, LPARA return FALSE; } - -