diff --git a/VBA.suo b/VBA.suo index b5cff28b..6b6d8a4c 100644 Binary files a/VBA.suo and b/VBA.suo differ diff --git a/VBA.vcproj b/VBA.vcproj index e790f475..0b1a8470 100644 --- a/VBA.vcproj +++ b/VBA.vcproj @@ -52,7 +52,7 @@ Name="VCCLCompilerTool" Optimization="0" AdditionalIncludeDirectories=""$(SolutionDir)zlib";"$(SolutionDir)libpng"" - PreprocessorDefinitions="WIN32;_WINDOWS;_DEBUG;DEV_VERSION;BKPT_SUPPORT;MMX" + PreprocessorDefinitions="WIN32;_WINDOWS;_DEBUG;DEV_VERSION;BKPT_SUPPORT;MMX;_CRT_SECURE_NO_WARNINGS" StringPooling="false" MinimalRebuild="true" BasicRuntimeChecks="3" @@ -165,7 +165,7 @@ OmitFramePointers="false" EnableFiberSafeOptimizations="false" AdditionalIncludeDirectories=""$(SolutionDir)zlib";"$(SolutionDir)libpng"" - PreprocessorDefinitions="WIN32;_WINDOWS;NDEBUG;FINAL_VERSION;MMX" + PreprocessorDefinitions="WIN32;_WINDOWS;NDEBUG;FINAL_VERSION;MMX;_CRT_SECURE_NO_WARNINGS" IgnoreStandardIncludePath="false" GeneratePreprocessedFile="0" KeepComments="false" @@ -307,13 +307,13 @@ FavorSizeOrSpeed="1" OmitFramePointers="true" AdditionalIncludeDirectories=""$(SolutionDir)zlib";"$(SolutionDir)libpng"" - PreprocessorDefinitions="WIN32;_WINDOWS;NDEBUG;FINAL_VERSION;MMX" + PreprocessorDefinitions="WIN32;_WINDOWS;NDEBUG;FINAL_VERSION;MMX;_CRT_SECURE_NO_WARNINGS" IgnoreStandardIncludePath="false" GeneratePreprocessedFile="0" KeepComments="false" StringPooling="true" MinimalRebuild="false" - ExceptionHandling="0" + ExceptionHandling="1" BasicRuntimeChecks="0" SmallerTypeCheck="false" RuntimeLibrary="0" diff --git a/libpng/libpng.vcproj b/libpng/libpng.vcproj index 4042293f..5fa03fd4 100644 --- a/libpng/libpng.vcproj +++ b/libpng/libpng.vcproj @@ -42,7 +42,7 @@ Name="VCCLCompilerTool" Optimization="0" AdditionalIncludeDirectories=""$(SolutionDir)zlib"" - PreprocessorDefinitions="WIN32;_DEBUG;_LIB" + PreprocessorDefinitions="WIN32;_DEBUG;_LIB;_CRT_SECURE_NO_WARNINGS" MinimalRebuild="true" BasicRuntimeChecks="3" RuntimeLibrary="1" @@ -106,7 +106,7 @@ GetAdapterModeCount(theApp.fsAdapter, D3DFMT_R5G6B5); for (i = 0; iddpfPixelFormat.dwRGBBitCount == 16) { theApp.mode800Available = TRUE; } + if(surf->dwWidth == 1024 && + surf->dwHeight == 768 && + surf->ddpfPixelFormat.dwRGBBitCount == 16) { + theApp.mode1024Available = TRUE; + } + if(surf->dwWidth == 1280 && + surf->dwHeight == 1024 && + surf->ddpfPixelFormat.dwRGBBitCount == 16) { + theApp.mode1280Available = TRUE; + } + + return DDENUMRET_OK; } @@ -346,6 +358,8 @@ bool DirectDrawDisplay::initialize() theApp.mode320Available = false; theApp.mode640Available = false; theApp.mode800Available = false; + theApp.mode1024Available = false; + theApp.mode1280Available = false; // check for available fullscreen modes pDirectDraw->EnumDisplayModes(DDEDM_STANDARDVGAMODES, NULL, NULL, checkModesAvailable); @@ -371,7 +385,7 @@ bool DirectDrawDisplay::initialize() hret = pDirectDraw->SetDisplayMode(theApp.fsWidth, theApp.fsHeight, theApp.fsColorDepth, - 60, + theApp.fsFrequency, 0); if(hret != DD_OK) { winlog("Error SetDisplayMode %08x\n", hret); diff --git a/src/win32/VBA.cpp b/src/win32/VBA.cpp index 9ab16c22..45705cb3 100644 --- a/src/win32/VBA.cpp +++ b/src/win32/VBA.cpp @@ -1286,7 +1286,7 @@ void VBA::loadSettings() fsWidth = regQueryDwordValue("fsWidth", 0); fsHeight = regQueryDwordValue("fsHeight", 0); fsColorDepth = regQueryDwordValue("fsColorDepth", 0); - fsFrequency = regQueryDwordValue("fsFrequency", 0); + fsFrequency = regQueryDwordValue("fsFrequency", 60); fsAdapter = regQueryDwordValue("fsAdapter", 0); if(videoOption == VIDEO_OTHER) @@ -1421,27 +1421,32 @@ void VBA::loadSettings() fsWidth = 320; fsHeight = 240; fsColorDepth = 16; + fsFrequency = 60; break; case VIDEO_640x480: fsWidth = 640; fsHeight = 480; fsColorDepth = 16; - break; + fsFrequency = 60; + break; case VIDEO_800x600: fsWidth = 800; fsHeight = 600; fsColorDepth = 16; - break; + fsFrequency = 60; + break; case VIDEO_1024x768: fsWidth = 1024; fsHeight = 768; - fsColorDepth = 32; - break; + fsColorDepth = 16; + fsFrequency = 60; + break; case VIDEO_1280x1024: fsWidth = 1280; fsHeight = 1024; - fsColorDepth = 32; - break; + fsColorDepth = 16; + fsFrequency = 60; + break; } winGbBorderOn = regQueryDwordValue("borderOn", 0); diff --git a/zlib/zlib.vcproj b/zlib/zlib.vcproj index 3a4d3e04..c3b7df8f 100644 --- a/zlib/zlib.vcproj +++ b/zlib/zlib.vcproj @@ -40,7 +40,7 @@