Files
@ r23882:d683a0787bc9
Branch filter:
Location: cpp/openttd-patchpack/source/projects/settingsgen_vs140.vcxproj - annotation
r23882:d683a0787bc9
3.7 KiB
text/plain
Codechange: Don't use SDL_CreateRGBSurfaceWithFormat()
This function requires libSDL 2.0.5 or higher. It looks like we don't
need to use it, and can just use the original SDL_CreateRGBSurface(),
with the masks set to 0, to trigger the default 8-bit format, which is
SDL_PIXELFORMAT_INDEX8.
Closes #7785
Note: this code path is activated by using an 8-bit blitter, like:
./bin/openttd -b 8bpp-simple
This function requires libSDL 2.0.5 or higher. It looks like we don't
need to use it, and can just use the original SDL_CreateRGBSurface(),
with the masks set to 0, to trigger the default 8-bit format, which is
SDL_PIXELFORMAT_INDEX8.
Closes #7785
Note: this code path is activated by using an 8-bit blitter, like:
./bin/openttd -b 8bpp-simple
r22202:ce851635a099 r22202:ce851635a099 r22202:ce851635a099 r22202:ce851635a099 r22202:ce851635a099 r22202:ce851635a099 r22202:ce851635a099 r22202:ce851635a099 r22202:ce851635a099 r22202:ce851635a099 r22202:ce851635a099 r22202:ce851635a099 r22202:ce851635a099 r22202:ce851635a099 r22202:ce851635a099 r22202:ce851635a099 r22202:ce851635a099 r22202:ce851635a099 r22202:ce851635a099 r22202:ce851635a099 r22202:ce851635a099 r22202:ce851635a099 r22202:ce851635a099 r22202:ce851635a099 r22202:ce851635a099 r22202:ce851635a099 r22202:ce851635a099 r22202:ce851635a099 r22202:ce851635a099 r22202:ce851635a099 r22202:ce851635a099 r22202:ce851635a099 r22202:ce851635a099 r22202:ce851635a099 r22202:ce851635a099 r22202:ce851635a099 r22202:ce851635a099 r22202:ce851635a099 r22202:ce851635a099 r22202:ce851635a099 r22202:ce851635a099 r22202:ce851635a099 r22202:ce851635a099 r22202:ce851635a099 r22202:ce851635a099 r22202:ce851635a099 r22202:ce851635a099 r22202:ce851635a099 r22202:ce851635a099 r22202:ce851635a099 r22202:ce851635a099 r22202:ce851635a099 r22202:ce851635a099 r22202:ce851635a099 r22202:ce851635a099 r22202:ce851635a099 r22202:ce851635a099 r22202:ce851635a099 r22202:ce851635a099 r22202:ce851635a099 r22202:ce851635a099 r22202:ce851635a099 r22202:ce851635a099 r22202:ce851635a099 r22202:ce851635a099 r22202:ce851635a099 r22202:ce851635a099 r22202:ce851635a099 r22202:ce851635a099 r22202:ce851635a099 r22202:ce851635a099 r22202:ce851635a099 r22202:ce851635a099 r22202:ce851635a099 r22202:ce851635a099 r22202:ce851635a099 r22202:ce851635a099 r22202:ce851635a099 r22202:ce851635a099 r22202:ce851635a099 r22202:ce851635a099 r22202:ce851635a099 r23052:1d3edf352f0e | <?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ItemGroup Label="ProjectConfigurations">
<ProjectConfiguration Include="Debug|Win32">
<Configuration>Debug</Configuration>
<Platform>Win32</Platform>
</ProjectConfiguration>
</ItemGroup>
<PropertyGroup Label="Globals">
<ProjectName>settingsgen</ProjectName>
<ProjectGuid>{E9548DE9-F089-49B7-93A6-30BE2CC311C7}</ProjectGuid>
<RootNamespace>settings</RootNamespace>
</PropertyGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
<CharacterSet>MultiByte</CharacterSet>
<PlatformToolset>v140</PlatformToolset>
</PropertyGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
<ImportGroup Label="ExtensionSettings">
</ImportGroup>
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="PropertySheets">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
</ImportGroup>
<PropertyGroup Label="UserMacros" />
<PropertyGroup>
<_ProjectFileVersion>10.0.30319.1</_ProjectFileVersion>
<OutDir Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">..\objs\settings\</OutDir>
<IntDir Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">..\objs\settings\</IntDir>
<TargetName Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">settings_gen</TargetName>
</PropertyGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
<PreBuildEvent>
<Command>
</Command>
</PreBuildEvent>
<CustomBuildStep>
<Inputs>%(Inputs)</Inputs>
</CustomBuildStep>
<ClCompile>
<Optimization>MinSpace</Optimization>
<FavorSizeOrSpeed>Size</FavorSizeOrSpeed>
<PreprocessorDefinitions>SETTINGSGEN;WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<AssemblerOutput>All</AssemblerOutput>
<ProgramDataBaseFileName>$(IntDir)$(TargetName).pdb</ProgramDataBaseFileName>
<WarningLevel>Level3</WarningLevel>
<TreatWarningAsError>true</TreatWarningAsError>
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
<RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary>
</ClCompile>
<Link>
<OutputFile>$(OutDir)settings_gen.exe</OutputFile>
<GenerateDebugInformation>true</GenerateDebugInformation>
<RandomizedBaseAddress>false</RandomizedBaseAddress>
<DataExecutionPrevention>
</DataExecutionPrevention>
<SubSystem>Console</SubSystem>
<MinimumRequiredVersion>5.01</MinimumRequiredVersion>
</Link>
<PostBuildEvent>
<Command>
</Command>
</PostBuildEvent>
</ItemDefinitionGroup>
<ItemGroup>
<ClCompile Include="..\src\core\alloc_func.cpp" />
<ClCompile Include="..\src\misc\getoptdata.cpp" />
<ClCompile Include="..\src\ini_load.cpp" />
<ClCompile Include="..\src\settingsgen\settingsgen.cpp" />
<ClCompile Include="..\src\string.cpp" />
</ItemGroup>
<ItemGroup>
<ClInclude Include="..\src\misc\getoptdata.h" />
<ClInclude Include="..\src\ini_type.h" />
<ClInclude Include="..\src\core\smallvec_type.hpp" />
<ClInclude Include="..\src\string_func.h" />
<ClInclude Include="..\src\strings_type.h" />
</ItemGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
<ImportGroup Label="ExtensionTargets">
</ImportGroup>
</Project>
|