Added GDI+ setup as I plan to rewrite the viewers soon (they'll use GDI+).

But, we do keep DirectDraw for the main window!
This commit is contained in:
luigi__ 2009-02-03 17:34:10 +00:00
parent a0cade405f
commit a2548e687b
2 changed files with 19 additions and 2 deletions

View File

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="shift_jis"?>
<VisualStudioProject
ProjectType="Visual C++"
Version="9.00"
Version="9,00"
Name="DeSmuME_VS2008"
ProjectGUID="{9F5F72A1-D3A5-4918-B460-E076B16D10A9}"
RootNamespace="DeSmuME"
@ -161,7 +161,7 @@
/>
<Tool
Name="VCLinkerTool"
AdditionalDependencies="vfw32.lib winmm.lib comctl32.lib opengl32.lib glu32.lib ws2_32.lib user32.lib gdi32.lib directx\dxguid.lib shell32.lib comdlg32.lib shlwapi.lib directx\dxerr8.lib directx\dsound.lib directx\dinput8.lib directx\ddraw.lib zlib-2008-x32.lib zziplib-2008-x32.lib shlwapi.lib"
AdditionalDependencies="vfw32.lib winmm.lib comctl32.lib opengl32.lib glu32.lib ws2_32.lib user32.lib gdi32.lib gdiplus.lib directx\dxguid.lib shell32.lib comdlg32.lib shlwapi.lib directx\dxerr8.lib directx\dsound.lib directx\dinput8.lib directx\ddraw.lib zlib-2008-x32.lib zziplib-2008-x32.lib"
OutputFile="$(OutDir)\$(ProjectName)_interim_sse2.exe"
AdditionalLibraryDirectories=".\zlib123;.\zziplib"
GenerateDebugInformation="true"

View File

@ -79,6 +79,10 @@
using namespace std;
#include <GdiPlus.h>
using namespace Gdiplus;
//----Recent ROMs menu globals----------
vector<string> RecentRoms; //The list of recent ROM filenames
const unsigned int MAX_RECENT_ROMS = 10; //To change the recent rom max, simply change this number
@ -1302,6 +1306,17 @@ int WINAPI WinMain (HINSTANCE hThisInstance,
int nFunsterStil)
{
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
@ -1635,6 +1650,8 @@ int WINAPI WinMain (HINSTANCE hThisInstance,
CloseConsole();
GdiplusShutdown(GdiplusToken);
return 0;
}