From bc272789bac55caf2ca94e8afe83c78660fe9f70 Mon Sep 17 00:00:00 2001 From: stephena Date: Sat, 8 Mar 2008 13:22:12 +0000 Subject: [PATCH] Updated Win32 Visual Studio project for x86_64 support. git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@1419 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba --- stella/src/common/FrameBufferGL.cxx | 10 +- stella/src/gui/RomInfoWidget.cxx | 4 +- stella/src/win32/Stella.sln | 6 + stella/src/win32/Stella.vcproj | 186 ++++++++++++++++++++++++++-- 4 files changed, 191 insertions(+), 15 deletions(-) diff --git a/stella/src/common/FrameBufferGL.cxx b/stella/src/common/FrameBufferGL.cxx index 799461939..5fc23d58b 100644 --- a/stella/src/common/FrameBufferGL.cxx +++ b/stella/src/common/FrameBufferGL.cxx @@ -13,7 +13,7 @@ // See the file "license" for information on usage and redistribution of // this file, and for a DISCLAIMER OF ALL WARRANTIES. // -// $Id: FrameBufferGL.cxx,v 1.97 2008-02-19 12:33:02 stephena Exp $ +// $Id: FrameBufferGL.cxx,v 1.98 2008-03-08 13:22:12 stephena Exp $ //============================================================================ #ifdef DISPLAY_OPENGL @@ -624,7 +624,13 @@ void FrameBufferGL::enablePhosphor(bool enable, int blend) // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - bool FrameBufferGL::createTextures() { - if(myTexture) SDL_FreeSurface(myTexture); + if(myTexture) + { + p_glClear(GL_COLOR_BUFFER_BIT); + SDL_GL_SwapBuffers(); + p_glClear(GL_COLOR_BUFFER_BIT); + SDL_FreeSurface(myTexture); + } if(myBuffer.texture) p_glDeleteTextures(1, &myBuffer.texture); memset(&myBuffer, 0, sizeof(glBufferType)); myBuffer.filter = GL_NEAREST; diff --git a/stella/src/gui/RomInfoWidget.cxx b/stella/src/gui/RomInfoWidget.cxx index e09cdde95..72adb5758 100644 --- a/stella/src/gui/RomInfoWidget.cxx +++ b/stella/src/gui/RomInfoWidget.cxx @@ -13,11 +13,11 @@ // See the file "license" for information on usage and redistribution of // this file, and for a DISCLAIMER OF ALL WARRANTIES. // -// $Id: RomInfoWidget.cxx,v 1.3 2008-02-06 13:45:24 stephena Exp $ +// $Id: RomInfoWidget.cxx,v 1.4 2008-03-08 13:22:12 stephena Exp $ //============================================================================ -#include #include +#include #include "FrameBuffer.hxx" #include "OSystem.hxx" diff --git a/stella/src/win32/Stella.sln b/stella/src/win32/Stella.sln index 6ed77cc95..0d1af80e7 100755 --- a/stella/src/win32/Stella.sln +++ b/stella/src/win32/Stella.sln @@ -5,13 +5,19 @@ EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Win32 = Debug|Win32 + Debug|x64 = Debug|x64 Release|Win32 = Release|Win32 + Release|x64 = Release|x64 EndGlobalSection GlobalSection(ProjectConfigurationPlatforms) = postSolution {D7FCEC7F-33E1-49DD-A4B0-D5FC222250AD}.Debug|Win32.ActiveCfg = Debug|Win32 {D7FCEC7F-33E1-49DD-A4B0-D5FC222250AD}.Debug|Win32.Build.0 = Debug|Win32 + {D7FCEC7F-33E1-49DD-A4B0-D5FC222250AD}.Debug|x64.ActiveCfg = Debug|x64 + {D7FCEC7F-33E1-49DD-A4B0-D5FC222250AD}.Debug|x64.Build.0 = Debug|x64 {D7FCEC7F-33E1-49DD-A4B0-D5FC222250AD}.Release|Win32.ActiveCfg = Release|Win32 {D7FCEC7F-33E1-49DD-A4B0-D5FC222250AD}.Release|Win32.Build.0 = Release|Win32 + {D7FCEC7F-33E1-49DD-A4B0-D5FC222250AD}.Release|x64.ActiveCfg = Release|x64 + {D7FCEC7F-33E1-49DD-A4B0-D5FC222250AD}.Release|x64.Build.0 = Release|x64 EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE diff --git a/stella/src/win32/Stella.vcproj b/stella/src/win32/Stella.vcproj index 802208a96..bcec2f694 100755 --- a/stella/src/win32/Stella.vcproj +++ b/stella/src/win32/Stella.vcproj @@ -12,6 +12,9 @@ + @@ -96,6 +99,87 @@ Name="VCPostBuildEventTool" /> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -184,10 +352,6 @@ Filter="cpp;c;cxx;def;odl;idl;hpj;bat;asm;asmx" UniqueIdentifier="{4FC737F1-C7A5-4376-A066-2A32D752A2FF}" > - - @@ -212,6 +376,10 @@ RelativePath="..\common\RectList.cxx" > + + @@ -746,10 +914,6 @@ RelativePath="..\common\Array.hxx" > - -