Added support for Windows cursors
authorSam Lantinga <slouken@libsdl.org>
Mon, 28 Feb 2011 23:50:32 -0800
changeset 5421f8588afb6486
parent 5420 180640c1ae53
child 5422 8e46c54a04d4
Added support for Windows cursors
VisualC/SDL_VS2008.sln
VisualC/SDL_VS2010.sln
VisualC/tests/testcursor/testcursor_VS2005.vcproj
VisualC/tests/testcursor/testcursor_VS2008.vcproj
VisualC/tests/testcursor/testcursor_VS2010.vcxproj
src/video/windows/SDL_windowsevents.c
src/video/windows/SDL_windowsmouse.c
src/video/windows/SDL_windowsmouse.h
     1.1 --- a/VisualC/SDL_VS2008.sln	Mon Feb 28 23:50:07 2011 -0800
     1.2 +++ b/VisualC/SDL_VS2008.sln	Mon Feb 28 23:50:32 2011 -0800
     1.3 @@ -144,6 +144,12 @@
     1.4  		{DA956FD3-E142-46F2-9DD5-C78BEBB56B7A} = {DA956FD3-E142-46F2-9DD5-C78BEBB56B7A}
     1.5  	EndProjectSection
     1.6  EndProject
     1.7 +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "testcursor", "tests\testcursor\testcursor_VS2008.vcproj", "{39B2FE52-578B-4C92-944E-50F50C581683}"
     1.8 +	ProjectSection(ProjectDependencies) = postProject
     1.9 +		{81CE8DAF-EBB2-4761-8E45-B71ABCCA8C68} = {81CE8DAF-EBB2-4761-8E45-B71ABCCA8C68}
    1.10 +		{DA956FD3-E142-46F2-9DD5-C78BEBB56B7A} = {DA956FD3-E142-46F2-9DD5-C78BEBB56B7A}
    1.11 +	EndProjectSection
    1.12 +EndProject
    1.13  Global
    1.14  	GlobalSection(SolutionConfigurationPlatforms) = preSolution
    1.15  		Debug|Win32 = Debug|Win32
    1.16 @@ -306,6 +312,12 @@
    1.17  		{66B32F7E-5716-48D0-B5B9-D832FD052DD5}.Release|Win32.ActiveCfg = Release|Win32
    1.18  		{66B32F7E-5716-48D0-B5B9-D832FD052DD5}.Release|Win32.Build.0 = Release|Win32
    1.19  		{66B32F7E-5716-48D0-B5B9-D832FD052DD5}.Release|x64.ActiveCfg = Release|Win32
    1.20 +		{39B2FE52-578B-4C92-944E-50F50C581683}.Debug|Win32.ActiveCfg = Debug|Win32
    1.21 +		{39B2FE52-578B-4C92-944E-50F50C581683}.Debug|Win32.Build.0 = Debug|Win32
    1.22 +		{39B2FE52-578B-4C92-944E-50F50C581683}.Debug|x64.ActiveCfg = Debug|Win32
    1.23 +		{39B2FE52-578B-4C92-944E-50F50C581683}.Release|Win32.ActiveCfg = Release|Win32
    1.24 +		{39B2FE52-578B-4C92-944E-50F50C581683}.Release|Win32.Build.0 = Release|Win32
    1.25 +		{39B2FE52-578B-4C92-944E-50F50C581683}.Release|x64.ActiveCfg = Release|Win32
    1.26  	EndGlobalSection
    1.27  	GlobalSection(SolutionProperties) = preSolution
    1.28  		HideSolutionNode = FALSE
    1.29 @@ -334,5 +346,6 @@
    1.30  		{31A3E4E1-AAE9-4EF3-9B23-18D0924BE4D2} = {CE748C1F-3C21-4825-AA6A-F895A023F7E7}
    1.31  		{79CEE57E-1BC3-4FF6-90B3-9E39763CDAFF} = {CE748C1F-3C21-4825-AA6A-F895A023F7E7}
    1.32  		{66B32F7E-5716-48D0-B5B9-D832FD052DD5} = {CE748C1F-3C21-4825-AA6A-F895A023F7E7}
    1.33 +		{39B2FE52-578B-4C92-944E-50F50C581683} = {CE748C1F-3C21-4825-AA6A-F895A023F7E7}
    1.34  	EndGlobalSection
    1.35  EndGlobal
     2.1 --- a/VisualC/SDL_VS2010.sln	Mon Feb 28 23:50:07 2011 -0800
     2.2 +++ b/VisualC/SDL_VS2010.sln	Mon Feb 28 23:50:32 2011 -0800
     2.3 @@ -133,6 +133,8 @@
     2.4  		{DA956FD3-E142-46F2-9DD5-C78BEBB56B7A} = {DA956FD3-E142-46F2-9DD5-C78BEBB56B7A}
     2.5  	EndProjectSection
     2.6  EndProject
     2.7 +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "testcursor", "tests\testcursor\testcursor_VS2010.vcxproj", "{20839E82-6F23-429D-91D7-8A2601BC7EA8}"
     2.8 +EndProject
     2.9  Global
    2.10  	GlobalSection(SolutionConfigurationPlatforms) = preSolution
    2.11  		Debug|Win32 = Debug|Win32
    2.12 @@ -151,8 +153,8 @@
    2.13  		{81CE8DAF-EBB2-4761-8E45-B71ABCCA8C68}.Release|x64.Build.0 = Release|x64
    2.14  		{DA956FD3-E142-46F2-9DD5-C78BEBB56B7A}.Debug|Win32.ActiveCfg = Debug|Win32
    2.15  		{DA956FD3-E142-46F2-9DD5-C78BEBB56B7A}.Debug|Win32.Build.0 = Debug|Win32
    2.16 -		{DA956FD3-E142-46F2-9DD5-C78BEBB56B7A}.Debug|x64.ActiveCfg = Debug|x64
    2.17 -		{DA956FD3-E142-46F2-9DD5-C78BEBB56B7A}.Debug|x64.Build.0 = Debug|x64
    2.18 +		{DA956FD3-E142-46F2-9DD5-C78BEBB56B7A}.Debug|x64.ActiveCfg = Debug|Win32
    2.19 +		{DA956FD3-E142-46F2-9DD5-C78BEBB56B7A}.Debug|x64.Build.0 = Debug|Win32
    2.20  		{DA956FD3-E142-46F2-9DD5-C78BEBB56B7A}.Release|Win32.ActiveCfg = Release|Win32
    2.21  		{DA956FD3-E142-46F2-9DD5-C78BEBB56B7A}.Release|Win32.Build.0 = Release|Win32
    2.22  		{DA956FD3-E142-46F2-9DD5-C78BEBB56B7A}.Release|x64.ActiveCfg = Release|x64
    2.23 @@ -282,6 +284,12 @@
    2.24  		{C4E04D18-EF76-4B42-B4C2-16A1BACDC0A3}.Release|Win32.ActiveCfg = Release|Win32
    2.25  		{C4E04D18-EF76-4B42-B4C2-16A1BACDC0A3}.Release|Win32.Build.0 = Release|Win32
    2.26  		{C4E04D18-EF76-4B42-B4C2-16A1BACDC0A3}.Release|x64.ActiveCfg = Release|Win32
    2.27 +		{20839E82-6F23-429D-91D7-8A2601BC7EA8}.Debug|Win32.ActiveCfg = Debug|Win32
    2.28 +		{20839E82-6F23-429D-91D7-8A2601BC7EA8}.Debug|Win32.Build.0 = Debug|Win32
    2.29 +		{20839E82-6F23-429D-91D7-8A2601BC7EA8}.Debug|x64.ActiveCfg = Debug|Win32
    2.30 +		{20839E82-6F23-429D-91D7-8A2601BC7EA8}.Release|Win32.ActiveCfg = Release|Win32
    2.31 +		{20839E82-6F23-429D-91D7-8A2601BC7EA8}.Release|Win32.Build.0 = Release|Win32
    2.32 +		{20839E82-6F23-429D-91D7-8A2601BC7EA8}.Release|x64.ActiveCfg = Release|Win32
    2.33  	EndGlobalSection
    2.34  	GlobalSection(SolutionProperties) = preSolution
    2.35  		HideSolutionNode = FALSE
    2.36 @@ -308,5 +316,6 @@
    2.37  		{EDEA9D00-AF64-45DE-8F60-5957048F2F0F} = {CE748C1F-3C21-4825-AA6A-F895A023F7E7}
    2.38  		{8682FE1E-0CF6-4EDD-9BB5-1733D8C8B4DF} = {CE748C1F-3C21-4825-AA6A-F895A023F7E7}
    2.39  		{C4E04D18-EF76-4B42-B4C2-16A1BACDC0A3} = {CE748C1F-3C21-4825-AA6A-F895A023F7E7}
    2.40 +		{20839E82-6F23-429D-91D7-8A2601BC7EA8} = {CE748C1F-3C21-4825-AA6A-F895A023F7E7}
    2.41  	EndGlobalSection
    2.42  EndGlobal
     3.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     3.2 +++ b/VisualC/tests/testcursor/testcursor_VS2005.vcproj	Mon Feb 28 23:50:32 2011 -0800
     3.3 @@ -0,0 +1,239 @@
     3.4 +<?xml version="1.0" encoding="Windows-1252"?>
     3.5 +<VisualStudioProject
     3.6 +	ProjectType="Visual C++"
     3.7 +	Version="8.00"
     3.8 +	Name="testcursor"
     3.9 +	ProjectGUID="{26932B24-EFC6-4E3A-B277-ED653DA37968}"
    3.10 +	>
    3.11 +	<Platforms>
    3.12 +		<Platform
    3.13 +			Name="Win32"
    3.14 +		/>
    3.15 +	</Platforms>
    3.16 +	<ToolFiles>
    3.17 +	</ToolFiles>
    3.18 +	<Configurations>
    3.19 +		<Configuration
    3.20 +			Name="Debug|Win32"
    3.21 +			OutputDirectory=".\Debug"
    3.22 +			IntermediateDirectory=".\Debug"
    3.23 +			ConfigurationType="1"
    3.24 +			InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC60.vsprops"
    3.25 +			UseOfMFC="0"
    3.26 +			ATLMinimizesCRunTimeLibraryUsage="false"
    3.27 +			>
    3.28 +			<Tool
    3.29 +				Name="VCPreBuildEventTool"
    3.30 +			/>
    3.31 +			<Tool
    3.32 +				Name="VCCustomBuildTool"
    3.33 +			/>
    3.34 +			<Tool
    3.35 +				Name="VCXMLDataGeneratorTool"
    3.36 +			/>
    3.37 +			<Tool
    3.38 +				Name="VCWebServiceProxyGeneratorTool"
    3.39 +			/>
    3.40 +			<Tool
    3.41 +				Name="VCMIDLTool"
    3.42 +				PreprocessorDefinitions="_DEBUG"
    3.43 +				MkTypLibCompatible="true"
    3.44 +				SuppressStartupBanner="true"
    3.45 +				TargetEnvironment="1"
    3.46 +				TypeLibraryName=".\Debug/testcursor.tlb"
    3.47 +				HeaderFileName=""
    3.48 +			/>
    3.49 +			<Tool
    3.50 +				Name="VCCLCompilerTool"
    3.51 +				Optimization="0"
    3.52 +				AdditionalIncludeDirectories="..\..\..\include"
    3.53 +				PreprocessorDefinitions="WIN32;_DEBUG;_WINDOWS"
    3.54 +				MinimalRebuild="true"
    3.55 +				RuntimeLibrary="2"
    3.56 +				PrecompiledHeaderFile=".\Debug/testcursor.pch"
    3.57 +				AssemblerListingLocation=".\Debug/"
    3.58 +				ObjectFile=".\Debug/"
    3.59 +				ProgramDataBaseFileName=".\Debug/"
    3.60 +				WarningLevel="3"
    3.61 +				SuppressStartupBanner="true"
    3.62 +				DebugInformationFormat="4"
    3.63 +			/>
    3.64 +			<Tool
    3.65 +				Name="VCManagedResourceCompilerTool"
    3.66 +			/>
    3.67 +			<Tool
    3.68 +				Name="VCResourceCompilerTool"
    3.69 +				PreprocessorDefinitions="_DEBUG"
    3.70 +				Culture="1033"
    3.71 +			/>
    3.72 +			<Tool
    3.73 +				Name="VCPreLinkEventTool"
    3.74 +			/>
    3.75 +			<Tool
    3.76 +				Name="VCLinkerTool"
    3.77 +				OutputFile=".\Debug/testcursor.exe"
    3.78 +				LinkIncremental="2"
    3.79 +				SuppressStartupBanner="true"
    3.80 +				GenerateDebugInformation="true"
    3.81 +				ProgramDatabaseFile=".\Debug/testcursor.pdb"
    3.82 +				SubSystem="2"
    3.83 +				TargetMachine="1"
    3.84 +			/>
    3.85 +			<Tool
    3.86 +				Name="VCALinkTool"
    3.87 +			/>
    3.88 +			<Tool
    3.89 +				Name="VCManifestTool"
    3.90 +			/>
    3.91 +			<Tool
    3.92 +				Name="VCXDCMakeTool"
    3.93 +			/>
    3.94 +			<Tool
    3.95 +				Name="VCBscMakeTool"
    3.96 +				SuppressStartupBanner="true"
    3.97 +				OutputFile=".\Debug/testcursor.bsc"
    3.98 +			/>
    3.99 +			<Tool
   3.100 +				Name="VCFxCopTool"
   3.101 +			/>
   3.102 +			<Tool
   3.103 +				Name="VCAppVerifierTool"
   3.104 +			/>
   3.105 +			<Tool
   3.106 +				Name="VCWebDeploymentTool"
   3.107 +			/>
   3.108 +			<Tool
   3.109 +				Name="VCPostBuildEventTool"
   3.110 +			/>
   3.111 +		</Configuration>
   3.112 +		<Configuration
   3.113 +			Name="Release|Win32"
   3.114 +			OutputDirectory=".\Release"
   3.115 +			IntermediateDirectory=".\Release"
   3.116 +			ConfigurationType="1"
   3.117 +			InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC60.vsprops"
   3.118 +			UseOfMFC="0"
   3.119 +			ATLMinimizesCRunTimeLibraryUsage="false"
   3.120 +			>
   3.121 +			<Tool
   3.122 +				Name="VCPreBuildEventTool"
   3.123 +			/>
   3.124 +			<Tool
   3.125 +				Name="VCCustomBuildTool"
   3.126 +			/>
   3.127 +			<Tool
   3.128 +				Name="VCXMLDataGeneratorTool"
   3.129 +			/>
   3.130 +			<Tool
   3.131 +				Name="VCWebServiceProxyGeneratorTool"
   3.132 +			/>
   3.133 +			<Tool
   3.134 +				Name="VCMIDLTool"
   3.135 +				PreprocessorDefinitions="NDEBUG"
   3.136 +				MkTypLibCompatible="true"
   3.137 +				SuppressStartupBanner="true"
   3.138 +				TargetEnvironment="1"
   3.139 +				TypeLibraryName=".\Release/testcursor.tlb"
   3.140 +				HeaderFileName=""
   3.141 +			/>
   3.142 +			<Tool
   3.143 +				Name="VCCLCompilerTool"
   3.144 +				Optimization="2"
   3.145 +				InlineFunctionExpansion="1"
   3.146 +				AdditionalIncludeDirectories="..\..\..\include"
   3.147 +				PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS"
   3.148 +				StringPooling="true"
   3.149 +				RuntimeLibrary="2"
   3.150 +				EnableFunctionLevelLinking="true"
   3.151 +				PrecompiledHeaderFile=".\Release/testcursor.pch"
   3.152 +				AssemblerListingLocation=".\Release/"
   3.153 +				ObjectFile=".\Release/"
   3.154 +				ProgramDataBaseFileName=".\Release/"
   3.155 +				WarningLevel="3"
   3.156 +				SuppressStartupBanner="true"
   3.157 +			/>
   3.158 +			<Tool
   3.159 +				Name="VCManagedResourceCompilerTool"
   3.160 +			/>
   3.161 +			<Tool
   3.162 +				Name="VCResourceCompilerTool"
   3.163 +				PreprocessorDefinitions="NDEBUG"
   3.164 +				Culture="1033"
   3.165 +			/>
   3.166 +			<Tool
   3.167 +				Name="VCPreLinkEventTool"
   3.168 +			/>
   3.169 +			<Tool
   3.170 +				Name="VCLinkerTool"
   3.171 +				OutputFile=".\Release/testcursor.exe"
   3.172 +				LinkIncremental="1"
   3.173 +				SuppressStartupBanner="true"
   3.174 +				ProgramDatabaseFile=".\Release/testcursor.pdb"
   3.175 +				SubSystem="2"
   3.176 +				TargetMachine="1"
   3.177 +			/>
   3.178 +			<Tool
   3.179 +				Name="VCALinkTool"
   3.180 +			/>
   3.181 +			<Tool
   3.182 +				Name="VCManifestTool"
   3.183 +			/>
   3.184 +			<Tool
   3.185 +				Name="VCXDCMakeTool"
   3.186 +			/>
   3.187 +			<Tool
   3.188 +				Name="VCBscMakeTool"
   3.189 +				SuppressStartupBanner="true"
   3.190 +				OutputFile=".\Release/testcursor.bsc"
   3.191 +			/>
   3.192 +			<Tool
   3.193 +				Name="VCFxCopTool"
   3.194 +			/>
   3.195 +			<Tool
   3.196 +				Name="VCAppVerifierTool"
   3.197 +			/>
   3.198 +			<Tool
   3.199 +				Name="VCWebDeploymentTool"
   3.200 +			/>
   3.201 +			<Tool
   3.202 +				Name="VCPostBuildEventTool"
   3.203 +			/>
   3.204 +		</Configuration>
   3.205 +	</Configurations>
   3.206 +	<References>
   3.207 +	</References>
   3.208 +	<Files>
   3.209 +		<File
   3.210 +			RelativePath="..\..\Sdl\Debug\SDL.lib"
   3.211 +			>
   3.212 +		</File>
   3.213 +		<File
   3.214 +			RelativePath="..\..\SDLmain\Debug\SDLmain.lib"
   3.215 +			>
   3.216 +		</File>
   3.217 +		<File
   3.218 +			RelativePath="..\..\..\Test\testcursor.c"
   3.219 +			>
   3.220 +			<FileConfiguration
   3.221 +				Name="Debug|Win32"
   3.222 +				>
   3.223 +				<Tool
   3.224 +					Name="VCCLCompilerTool"
   3.225 +					AdditionalIncludeDirectories=""
   3.226 +					PreprocessorDefinitions=""
   3.227 +				/>
   3.228 +			</FileConfiguration>
   3.229 +			<FileConfiguration
   3.230 +				Name="Release|Win32"
   3.231 +				>
   3.232 +				<Tool
   3.233 +					Name="VCCLCompilerTool"
   3.234 +					AdditionalIncludeDirectories=""
   3.235 +					PreprocessorDefinitions=""
   3.236 +				/>
   3.237 +			</FileConfiguration>
   3.238 +		</File>
   3.239 +	</Files>
   3.240 +	<Globals>
   3.241 +	</Globals>
   3.242 +</VisualStudioProject>
     4.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     4.2 +++ b/VisualC/tests/testcursor/testcursor_VS2008.vcproj	Mon Feb 28 23:50:32 2011 -0800
     4.3 @@ -0,0 +1,217 @@
     4.4 +<?xml version="1.0" encoding="Windows-1252"?>
     4.5 +<VisualStudioProject
     4.6 +	ProjectType="Visual C++"
     4.7 +	Version="9.00"
     4.8 +	Name="testcursor"
     4.9 +	ProjectGUID="{39B2FE52-578B-4C92-944E-50F50C581683}"
    4.10 +	RootNamespace="testcursor"
    4.11 +	TargetFrameworkVersion="131072"
    4.12 +	>
    4.13 +	<Platforms>
    4.14 +		<Platform
    4.15 +			Name="Win32"
    4.16 +		/>
    4.17 +	</Platforms>
    4.18 +	<ToolFiles>
    4.19 +	</ToolFiles>
    4.20 +	<Configurations>
    4.21 +		<Configuration
    4.22 +			Name="Debug|Win32"
    4.23 +			OutputDirectory=".\Debug"
    4.24 +			IntermediateDirectory=".\Debug"
    4.25 +			ConfigurationType="1"
    4.26 +			InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC60.vsprops"
    4.27 +			UseOfMFC="0"
    4.28 +			ATLMinimizesCRunTimeLibraryUsage="false"
    4.29 +			>
    4.30 +			<Tool
    4.31 +				Name="VCPreBuildEventTool"
    4.32 +			/>
    4.33 +			<Tool
    4.34 +				Name="VCCustomBuildTool"
    4.35 +			/>
    4.36 +			<Tool
    4.37 +				Name="VCXMLDataGeneratorTool"
    4.38 +			/>
    4.39 +			<Tool
    4.40 +				Name="VCWebServiceProxyGeneratorTool"
    4.41 +			/>
    4.42 +			<Tool
    4.43 +				Name="VCMIDLTool"
    4.44 +				PreprocessorDefinitions="_DEBUG"
    4.45 +				MkTypLibCompatible="true"
    4.46 +				SuppressStartupBanner="true"
    4.47 +				TargetEnvironment="1"
    4.48 +				TypeLibraryName=".\Debug/testcursor.tlb"
    4.49 +				HeaderFileName=""
    4.50 +			/>
    4.51 +			<Tool
    4.52 +				Name="VCCLCompilerTool"
    4.53 +				Optimization="0"
    4.54 +				AdditionalIncludeDirectories="..\..\..\include"
    4.55 +				PreprocessorDefinitions="WIN32;_DEBUG;_WINDOWS"
    4.56 +				MinimalRebuild="true"
    4.57 +				RuntimeLibrary="3"
    4.58 +				PrecompiledHeaderFile=".\Debug/testcursor.pch"
    4.59 +				AssemblerListingLocation=".\Debug/"
    4.60 +				ObjectFile=".\Debug/"
    4.61 +				ProgramDataBaseFileName=".\Debug/"
    4.62 +				WarningLevel="3"
    4.63 +				SuppressStartupBanner="true"
    4.64 +				DebugInformationFormat="4"
    4.65 +			/>
    4.66 +			<Tool
    4.67 +				Name="VCManagedResourceCompilerTool"
    4.68 +			/>
    4.69 +			<Tool
    4.70 +				Name="VCResourceCompilerTool"
    4.71 +				PreprocessorDefinitions="_DEBUG"
    4.72 +				Culture="1033"
    4.73 +			/>
    4.74 +			<Tool
    4.75 +				Name="VCPreLinkEventTool"
    4.76 +			/>
    4.77 +			<Tool
    4.78 +				Name="VCLinkerTool"
    4.79 +				OutputFile=".\Debug/testcursor.exe"
    4.80 +				LinkIncremental="2"
    4.81 +				SuppressStartupBanner="true"
    4.82 +				GenerateDebugInformation="true"
    4.83 +				ProgramDatabaseFile=".\Debug/testcursor.pdb"
    4.84 +				SubSystem="2"
    4.85 +				RandomizedBaseAddress="1"
    4.86 +				DataExecutionPrevention="0"
    4.87 +				TargetMachine="1"
    4.88 +			/>
    4.89 +			<Tool
    4.90 +				Name="VCALinkTool"
    4.91 +			/>
    4.92 +			<Tool
    4.93 +				Name="VCManifestTool"
    4.94 +			/>
    4.95 +			<Tool
    4.96 +				Name="VCXDCMakeTool"
    4.97 +			/>
    4.98 +			<Tool
    4.99 +				Name="VCBscMakeTool"
   4.100 +				SuppressStartupBanner="true"
   4.101 +				OutputFile=".\Debug/testcursor.bsc"
   4.102 +			/>
   4.103 +			<Tool
   4.104 +				Name="VCFxCopTool"
   4.105 +			/>
   4.106 +			<Tool
   4.107 +				Name="VCAppVerifierTool"
   4.108 +			/>
   4.109 +			<Tool
   4.110 +				Name="VCPostBuildEventTool"
   4.111 +				Description="Copy SDL"
   4.112 +				CommandLine="copy $(SolutionDir)\SDL\$(ConfigurationName)\SDL.dll $(TargetDir)\SDL.dll"
   4.113 +			/>
   4.114 +		</Configuration>
   4.115 +		<Configuration
   4.116 +			Name="Release|Win32"
   4.117 +			OutputDirectory=".\Release"
   4.118 +			IntermediateDirectory=".\Release"
   4.119 +			ConfigurationType="1"
   4.120 +			InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC60.vsprops"
   4.121 +			UseOfMFC="0"
   4.122 +			ATLMinimizesCRunTimeLibraryUsage="false"
   4.123 +			>
   4.124 +			<Tool
   4.125 +				Name="VCPreBuildEventTool"
   4.126 +			/>
   4.127 +			<Tool
   4.128 +				Name="VCCustomBuildTool"
   4.129 +			/>
   4.130 +			<Tool
   4.131 +				Name="VCXMLDataGeneratorTool"
   4.132 +			/>
   4.133 +			<Tool
   4.134 +				Name="VCWebServiceProxyGeneratorTool"
   4.135 +			/>
   4.136 +			<Tool
   4.137 +				Name="VCMIDLTool"
   4.138 +				PreprocessorDefinitions="NDEBUG"
   4.139 +				MkTypLibCompatible="true"
   4.140 +				SuppressStartupBanner="true"
   4.141 +				TargetEnvironment="1"
   4.142 +				TypeLibraryName=".\Release/testcursor.tlb"
   4.143 +				HeaderFileName=""
   4.144 +			/>
   4.145 +			<Tool
   4.146 +				Name="VCCLCompilerTool"
   4.147 +				Optimization="2"
   4.148 +				InlineFunctionExpansion="1"
   4.149 +				AdditionalIncludeDirectories="..\..\..\include"
   4.150 +				PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS"
   4.151 +				StringPooling="true"
   4.152 +				RuntimeLibrary="2"
   4.153 +				EnableFunctionLevelLinking="true"
   4.154 +				PrecompiledHeaderFile=".\Release/testcursor.pch"
   4.155 +				AssemblerListingLocation=".\Release/"
   4.156 +				ObjectFile=".\Release/"
   4.157 +				ProgramDataBaseFileName=".\Release/"
   4.158 +				WarningLevel="3"
   4.159 +				SuppressStartupBanner="true"
   4.160 +			/>
   4.161 +			<Tool
   4.162 +				Name="VCManagedResourceCompilerTool"
   4.163 +			/>
   4.164 +			<Tool
   4.165 +				Name="VCResourceCompilerTool"
   4.166 +				PreprocessorDefinitions="NDEBUG"
   4.167 +				Culture="1033"
   4.168 +			/>
   4.169 +			<Tool
   4.170 +				Name="VCPreLinkEventTool"
   4.171 +			/>
   4.172 +			<Tool
   4.173 +				Name="VCLinkerTool"
   4.174 +				OutputFile=".\Release/testcursor.exe"
   4.175 +				LinkIncremental="1"
   4.176 +				SuppressStartupBanner="true"
   4.177 +				ProgramDatabaseFile=".\Release/testcursor.pdb"
   4.178 +				SubSystem="2"
   4.179 +				RandomizedBaseAddress="1"
   4.180 +				DataExecutionPrevention="0"
   4.181 +				TargetMachine="1"
   4.182 +			/>
   4.183 +			<Tool
   4.184 +				Name="VCALinkTool"
   4.185 +			/>
   4.186 +			<Tool
   4.187 +				Name="VCManifestTool"
   4.188 +			/>
   4.189 +			<Tool
   4.190 +				Name="VCXDCMakeTool"
   4.191 +			/>
   4.192 +			<Tool
   4.193 +				Name="VCBscMakeTool"
   4.194 +				SuppressStartupBanner="true"
   4.195 +				OutputFile=".\Release/testcursor.bsc"
   4.196 +			/>
   4.197 +			<Tool
   4.198 +				Name="VCFxCopTool"
   4.199 +			/>
   4.200 +			<Tool
   4.201 +				Name="VCAppVerifierTool"
   4.202 +			/>
   4.203 +			<Tool
   4.204 +				Name="VCPostBuildEventTool"
   4.205 +				Description="Copy SDL"
   4.206 +				CommandLine="copy $(SolutionDir)\SDL\$(ConfigurationName)\SDL.dll $(TargetDir)\SDL.dll"
   4.207 +			/>
   4.208 +		</Configuration>
   4.209 +	</Configurations>
   4.210 +	<References>
   4.211 +	</References>
   4.212 +	<Files>
   4.213 +		<File
   4.214 +			RelativePath="..\..\..\Test\testcursor.c"
   4.215 +			>
   4.216 +		</File>
   4.217 +	</Files>
   4.218 +	<Globals>
   4.219 +	</Globals>
   4.220 +</VisualStudioProject>
     5.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     5.2 +++ b/VisualC/tests/testcursor/testcursor_VS2010.vcxproj	Mon Feb 28 23:50:32 2011 -0800
     5.3 @@ -0,0 +1,157 @@
     5.4 +<?xml version="1.0" encoding="utf-8"?>
     5.5 +<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
     5.6 +  <ItemGroup Label="ProjectConfigurations">
     5.7 +    <ProjectConfiguration Include="Debug|Win32">
     5.8 +      <Configuration>Debug</Configuration>
     5.9 +      <Platform>Win32</Platform>
    5.10 +    </ProjectConfiguration>
    5.11 +    <ProjectConfiguration Include="Release|Win32">
    5.12 +      <Configuration>Release</Configuration>
    5.13 +      <Platform>Win32</Platform>
    5.14 +    </ProjectConfiguration>
    5.15 +  </ItemGroup>
    5.16 +  <PropertyGroup Label="Globals">
    5.17 +    <ProjectName>testcursor</ProjectName>
    5.18 +    <RootNamespace>testcursor</RootNamespace>
    5.19 +    <ProjectGuid>{20839E82-6F23-429D-91D7-8A2601BC7EA8}</ProjectGuid>
    5.20 +  </PropertyGroup>
    5.21 +  <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
    5.22 +  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
    5.23 +    <ConfigurationType>Application</ConfigurationType>
    5.24 +    <UseOfMfc>false</UseOfMfc>
    5.25 +  </PropertyGroup>
    5.26 +  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
    5.27 +    <ConfigurationType>Application</ConfigurationType>
    5.28 +    <UseOfMfc>false</UseOfMfc>
    5.29 +  </PropertyGroup>
    5.30 +  <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
    5.31 +  <ImportGroup Label="ExtensionSettings">
    5.32 +  </ImportGroup>
    5.33 +  <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="PropertySheets">
    5.34 +    <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
    5.35 +    <Import Project="$(VCTargetsPath)Microsoft.CPP.UpgradeFromVC60.props" />
    5.36 +  </ImportGroup>
    5.37 +  <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="PropertySheets">
    5.38 +    <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
    5.39 +    <Import Project="$(VCTargetsPath)Microsoft.CPP.UpgradeFromVC60.props" />
    5.40 +  </ImportGroup>
    5.41 +  <PropertyGroup Label="UserMacros" />
    5.42 +  <PropertyGroup>
    5.43 +    <_ProjectFileVersion>10.0.30319.1</_ProjectFileVersion>
    5.44 +    <OutDir Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">.\Debug\</OutDir>
    5.45 +    <IntDir Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">.\Debug\</IntDir>
    5.46 +    <LinkIncremental Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</LinkIncremental>
    5.47 +    <OutDir Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">.\Release\</OutDir>
    5.48 +    <IntDir Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">.\Release\</IntDir>
    5.49 +    <LinkIncremental Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">false</LinkIncremental>
    5.50 +  </PropertyGroup>
    5.51 +  <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
    5.52 +    <Midl>
    5.53 +      <PreprocessorDefinitions>_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
    5.54 +      <MkTypLibCompatible>true</MkTypLibCompatible>
    5.55 +      <SuppressStartupBanner>true</SuppressStartupBanner>
    5.56 +      <TargetEnvironment>Win32</TargetEnvironment>
    5.57 +      <TypeLibraryName>.\Debug/testcursor.tlb</TypeLibraryName>
    5.58 +      <HeaderFileName>
    5.59 +      </HeaderFileName>
    5.60 +    </Midl>
    5.61 +    <ClCompile>
    5.62 +      <Optimization>Disabled</Optimization>
    5.63 +      <AdditionalIncludeDirectories>..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
    5.64 +      <PreprocessorDefinitions>WIN32;_DEBUG;_WINDOWS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
    5.65 +      <MinimalRebuild>true</MinimalRebuild>
    5.66 +      <RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
    5.67 +      <PrecompiledHeaderOutputFile>.\Debug/testcursor.pch</PrecompiledHeaderOutputFile>
    5.68 +      <AssemblerListingLocation>.\Debug/</AssemblerListingLocation>
    5.69 +      <ObjectFileName>.\Debug/</ObjectFileName>
    5.70 +      <ProgramDataBaseFileName>.\Debug/</ProgramDataBaseFileName>
    5.71 +      <WarningLevel>Level3</WarningLevel>
    5.72 +      <SuppressStartupBanner>true</SuppressStartupBanner>
    5.73 +      <DebugInformationFormat>EditAndContinue</DebugInformationFormat>
    5.74 +    </ClCompile>
    5.75 +    <ResourceCompile>
    5.76 +      <PreprocessorDefinitions>_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
    5.77 +      <Culture>0x0409</Culture>
    5.78 +    </ResourceCompile>
    5.79 +    <Link>
    5.80 +      <OutputFile>.\Debug/testcursor.exe</OutputFile>
    5.81 +      <SuppressStartupBanner>true</SuppressStartupBanner>
    5.82 +      <GenerateDebugInformation>true</GenerateDebugInformation>
    5.83 +      <ProgramDatabaseFile>.\Debug/testcursor.pdb</ProgramDatabaseFile>
    5.84 +      <SubSystem>Windows</SubSystem>
    5.85 +      <TargetMachine>MachineX86</TargetMachine>
    5.86 +    </Link>
    5.87 +    <Bscmake>
    5.88 +      <SuppressStartupBanner>true</SuppressStartupBanner>
    5.89 +      <OutputFile>.\Debug/testcursor.bsc</OutputFile>
    5.90 +    </Bscmake>
    5.91 +    <PostBuildEvent>
    5.92 +      <Command>copy $(SolutionDir)\SDL\$(ConfigurationName)\SDL.dll $(TargetDir)\SDL.dll</Command>
    5.93 +    </PostBuildEvent>
    5.94 +    <PostBuildEvent>
    5.95 +      <Message>Copy SDL</Message>
    5.96 +    </PostBuildEvent>
    5.97 +  </ItemDefinitionGroup>
    5.98 +  <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
    5.99 +    <Midl>
   5.100 +      <PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
   5.101 +      <MkTypLibCompatible>true</MkTypLibCompatible>
   5.102 +      <SuppressStartupBanner>true</SuppressStartupBanner>
   5.103 +      <TargetEnvironment>Win32</TargetEnvironment>
   5.104 +      <TypeLibraryName>.\Release/testcursor.tlb</TypeLibraryName>
   5.105 +      <HeaderFileName>
   5.106 +      </HeaderFileName>
   5.107 +    </Midl>
   5.108 +    <ClCompile>
   5.109 +      <Optimization>MaxSpeed</Optimization>
   5.110 +      <InlineFunctionExpansion>OnlyExplicitInline</InlineFunctionExpansion>
   5.111 +      <AdditionalIncludeDirectories>..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
   5.112 +      <PreprocessorDefinitions>WIN32;NDEBUG;_WINDOWS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
   5.113 +      <StringPooling>true</StringPooling>
   5.114 +      <RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
   5.115 +      <FunctionLevelLinking>true</FunctionLevelLinking>
   5.116 +      <PrecompiledHeaderOutputFile>.\Release/testcursor.pch</PrecompiledHeaderOutputFile>
   5.117 +      <AssemblerListingLocation>.\Release/</AssemblerListingLocation>
   5.118 +      <ObjectFileName>.\Release/</ObjectFileName>
   5.119 +      <ProgramDataBaseFileName>.\Release/</ProgramDataBaseFileName>
   5.120 +      <WarningLevel>Level3</WarningLevel>
   5.121 +      <SuppressStartupBanner>true</SuppressStartupBanner>
   5.122 +    </ClCompile>
   5.123 +    <ResourceCompile>
   5.124 +      <PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
   5.125 +      <Culture>0x0409</Culture>
   5.126 +    </ResourceCompile>
   5.127 +    <Link>
   5.128 +      <OutputFile>.\Release/testcursor.exe</OutputFile>
   5.129 +      <SuppressStartupBanner>true</SuppressStartupBanner>
   5.130 +      <ProgramDatabaseFile>.\Release/testcursor.pdb</ProgramDatabaseFile>
   5.131 +      <SubSystem>Windows</SubSystem>
   5.132 +      <TargetMachine>MachineX86</TargetMachine>
   5.133 +    </Link>
   5.134 +    <Bscmake>
   5.135 +      <SuppressStartupBanner>true</SuppressStartupBanner>
   5.136 +      <OutputFile>.\Release/testcursor.bsc</OutputFile>
   5.137 +    </Bscmake>
   5.138 +    <PostBuildEvent>
   5.139 +      <Command>copy $(SolutionDir)\SDL\$(ConfigurationName)\SDL.dll $(TargetDir)\SDL.dll</Command>
   5.140 +    </PostBuildEvent>
   5.141 +    <PostBuildEvent>
   5.142 +      <Message>Copy SDL</Message>
   5.143 +    </PostBuildEvent>
   5.144 +  </ItemDefinitionGroup>
   5.145 +  <ItemGroup>
   5.146 +    <Library Include="..\..\Sdl\Debug\SDL.lib" />
   5.147 +    <Library Include="..\..\SDLmain\Debug\SDLmain.lib" />
   5.148 +  </ItemGroup>
   5.149 +  <ItemGroup>
   5.150 +    <ClCompile Include="..\..\..\Test\testcursor.c">
   5.151 +      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
   5.152 +      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
   5.153 +      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
   5.154 +      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
   5.155 +    </ClCompile>
   5.156 +  </ItemGroup>
   5.157 +  <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
   5.158 +  <ImportGroup Label="ExtensionTargets">
   5.159 +  </ImportGroup>
   5.160 +</Project>
   5.161 \ No newline at end of file
     6.1 --- a/src/video/windows/SDL_windowsevents.c	Mon Feb 28 23:50:07 2011 -0800
     6.2 +++ b/src/video/windows/SDL_windowsevents.c	Mon Feb 28 23:50:32 2011 -0800
     6.3 @@ -490,12 +490,7 @@
     6.4  
     6.5              hittest = LOWORD(lParam);
     6.6              if (hittest == HTCLIENT) {
     6.7 -                /* FIXME: Implement the cursor API */
     6.8 -                static HCURSOR cursor;
     6.9 -                if (!cursor) {
    6.10 -                    cursor = LoadCursor(NULL, IDC_ARROW);
    6.11 -                }
    6.12 -                SetCursor(cursor);
    6.13 +                SetCursor(SDL_cursor);
    6.14                  returnCode = TRUE;
    6.15              }
    6.16          }
     7.1 --- a/src/video/windows/SDL_windowsmouse.c	Mon Feb 28 23:50:07 2011 -0800
     7.2 +++ b/src/video/windows/SDL_windowsmouse.c	Mon Feb 28 23:50:32 2011 -0800
     7.3 @@ -24,9 +24,141 @@
     7.4  
     7.5  #include "SDL_windowsvideo.h"
     7.6  
     7.7 +#include "../../events/SDL_mouse_c.h"
     7.8 +
     7.9 +
    7.10 +HCURSOR SDL_cursor = NULL;
    7.11 +
    7.12 +
    7.13 +static SDL_Cursor *
    7.14 +WIN_CreateDefaultCursor()
    7.15 +{
    7.16 +    SDL_Cursor *cursor;
    7.17 +
    7.18 +    cursor = SDL_calloc(1, sizeof(*cursor));
    7.19 +    if (cursor) {
    7.20 +        cursor->driverdata = LoadCursor(NULL, IDC_ARROW);
    7.21 +    } else {
    7.22 +        SDL_OutOfMemory();
    7.23 +    }
    7.24 +
    7.25 +    return cursor;
    7.26 +}
    7.27 +
    7.28 +static SDL_Cursor *
    7.29 +WIN_CreateCursor(SDL_Surface * surface, int hot_x, int hot_y)
    7.30 +{
    7.31 +    SDL_Cursor *cursor;
    7.32 +    SDL_Surface *cvt;
    7.33 +    HICON hicon;
    7.34 +    HDC hdc;
    7.35 +    BITMAPV4HEADER bmh;
    7.36 +    LPVOID pixels;
    7.37 +    ICONINFO ii;
    7.38 +
    7.39 +    SDL_zero(bmh);
    7.40 +    bmh.bV4Size = sizeof(bmh);
    7.41 +    bmh.bV4Width = surface->w;
    7.42 +    bmh.bV4Height = -surface->h; /* Invert the image */
    7.43 +    bmh.bV4Planes = 1;
    7.44 +    bmh.bV4BitCount = 32;
    7.45 +    bmh.bV4V4Compression = BI_BITFIELDS;
    7.46 +    bmh.bV4AlphaMask = 0xFF000000;
    7.47 +    bmh.bV4RedMask   = 0x00FF0000;
    7.48 +    bmh.bV4GreenMask = 0x0000FF00;
    7.49 +    bmh.bV4BlueMask  = 0x000000FF;
    7.50 +
    7.51 +    hdc = GetDC(NULL);
    7.52 +    SDL_zero(ii);
    7.53 +    ii.fIcon = FALSE;
    7.54 +    ii.xHotspot = (DWORD)hot_x;
    7.55 +    ii.yHotspot = (DWORD)hot_y;
    7.56 +    ii.hbmColor = CreateDIBSection(hdc, (BITMAPINFO*)&bmh, DIB_RGB_COLORS, &pixels, NULL, 0);
    7.57 +    ii.hbmMask = CreateBitmap(surface->w, surface->h, 1, 1, NULL);
    7.58 +    ReleaseDC(NULL, hdc);
    7.59 +
    7.60 +    cvt = SDL_ConvertSurfaceFormat(surface, SDL_PIXELFORMAT_ARGB8888, 0);
    7.61 +    if (!cvt) {
    7.62 +        return NULL;
    7.63 +    }
    7.64 +    SDL_memcpy(pixels, cvt->pixels, cvt->h * cvt->pitch);
    7.65 +    SDL_FreeSurface(cvt);
    7.66 +
    7.67 +    hicon = CreateIconIndirect(&ii);
    7.68 +
    7.69 +    DeleteObject(ii.hbmColor);
    7.70 +    DeleteObject(ii.hbmMask);
    7.71 +
    7.72 +    if (!hicon) {
    7.73 +        WIN_SetError("CreateIconIndirect()");
    7.74 +        return NULL;
    7.75 +    }
    7.76 +
    7.77 +    cursor = SDL_calloc(1, sizeof(*cursor));
    7.78 +    if (cursor) {
    7.79 +        cursor->driverdata = hicon;
    7.80 +    } else {
    7.81 +        DestroyIcon(hicon);
    7.82 +        SDL_OutOfMemory();
    7.83 +    }
    7.84 +
    7.85 +    return cursor;
    7.86 +}
    7.87 +
    7.88 +static void
    7.89 +WIN_FreeCursor(SDL_Cursor * cursor)
    7.90 +{
    7.91 +    HICON hicon = (HICON)cursor->driverdata;
    7.92 +
    7.93 +    DestroyIcon(hicon);
    7.94 +    SDL_free(cursor);
    7.95 +}
    7.96 +
    7.97 +static int
    7.98 +WIN_ShowCursor(SDL_Cursor * cursor)
    7.99 +{
   7.100 +    if (cursor) {
   7.101 +        SDL_cursor = (HCURSOR)cursor->driverdata;
   7.102 +    } else {
   7.103 +        SDL_cursor = NULL;
   7.104 +    }
   7.105 +    if (SDL_GetMouseFocus() != NULL) {
   7.106 +        SetCursor(SDL_cursor);
   7.107 +    }
   7.108 +    return 0;
   7.109 +}
   7.110 +
   7.111 +static void
   7.112 +WIN_WarpMouse(SDL_Window * window, int x, int y)
   7.113 +{
   7.114 +    HWND hwnd = ((SDL_WindowData *) window->driverdata)->hwnd;
   7.115 +    POINT pt;
   7.116 +
   7.117 +    pt.x = x;
   7.118 +    pt.y = y;
   7.119 +    ClientToScreen(hwnd, &pt);
   7.120 +    SetCursorPos(pt.x, pt.y);
   7.121 +}
   7.122 +
   7.123 +static int
   7.124 +WIN_SetRelativeMouseMode(SDL_bool enabled)
   7.125 +{
   7.126 +    SDL_Unsupported();
   7.127 +    return -1;
   7.128 +}
   7.129 +
   7.130  void
   7.131  WIN_InitMouse(_THIS)
   7.132  {
   7.133 +    SDL_Mouse *mouse = SDL_GetMouse();
   7.134 +
   7.135 +    mouse->CreateCursor = WIN_CreateCursor;
   7.136 +    mouse->ShowCursor = WIN_ShowCursor;
   7.137 +    mouse->FreeCursor = WIN_FreeCursor;
   7.138 +    mouse->WarpMouse = WIN_WarpMouse;
   7.139 +    mouse->SetRelativeMouseMode = WIN_SetRelativeMouseMode;
   7.140 +
   7.141 +    SDL_SetDefaultCursor(WIN_CreateDefaultCursor());
   7.142  }
   7.143  
   7.144  void
     8.1 --- a/src/video/windows/SDL_windowsmouse.h	Mon Feb 28 23:50:07 2011 -0800
     8.2 +++ b/src/video/windows/SDL_windowsmouse.h	Mon Feb 28 23:50:32 2011 -0800
     8.3 @@ -24,6 +24,8 @@
     8.4  #ifndef _SDL_windowsmouse_h
     8.5  #define _SDL_windowsmouse_h
     8.6  
     8.7 +extern HCURSOR SDL_cursor;
     8.8 +
     8.9  extern void WIN_InitMouse(_THIS);
    8.10  extern void WIN_QuitMouse(_THIS);
    8.11