Files
@ r23882:d683a0787bc9
Branch filter:
Location: cpp/openttd-patchpack/source/projects/langs_vs142.vcxproj.in - annotation
r23882:d683a0787bc9
3.0 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
r23211:be0c64e8b669 r23211:be0c64e8b669 r23211:be0c64e8b669 r23211:be0c64e8b669 r23211:be0c64e8b669 r23211:be0c64e8b669 r23211:be0c64e8b669 r23211:be0c64e8b669 r23211:be0c64e8b669 r23211:be0c64e8b669 r23211:be0c64e8b669 r23211:be0c64e8b669 r23211:be0c64e8b669 r23211:be0c64e8b669 r23211:be0c64e8b669 r23211:be0c64e8b669 r23211:be0c64e8b669 r23211:be0c64e8b669 r23211:be0c64e8b669 r23211:be0c64e8b669 r23211:be0c64e8b669 r23211:be0c64e8b669 r23211:be0c64e8b669 r23211:be0c64e8b669 r23211:be0c64e8b669 r23211:be0c64e8b669 r23211:be0c64e8b669 r23211:be0c64e8b669 r23211:be0c64e8b669 r23211:be0c64e8b669 r23211:be0c64e8b669 r23211:be0c64e8b669 r23211:be0c64e8b669 r23211:be0c64e8b669 r23211:be0c64e8b669 r23211:be0c64e8b669 r23211:be0c64e8b669 r23211:be0c64e8b669 r23211:be0c64e8b669 r23211:be0c64e8b669 r23211:be0c64e8b669 r23211:be0c64e8b669 r23211:be0c64e8b669 r23211:be0c64e8b669 r23211:be0c64e8b669 r23211:be0c64e8b669 r23211:be0c64e8b669 r23211:be0c64e8b669 r23211:be0c64e8b669 r23211:be0c64e8b669 r23211:be0c64e8b669 r23211:be0c64e8b669 r23211:be0c64e8b669 r23211:be0c64e8b669 r23211:be0c64e8b669 r23211:be0c64e8b669 r23211:be0c64e8b669 r23211:be0c64e8b669 r23211:be0c64e8b669 r23211:be0c64e8b669 r23211:be0c64e8b669 | <?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" ToolsVersion="15.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>langs</ProjectName>
<ProjectGuid>{0F066B23-18DF-4284-8265-F4A5E7E3B966}</ProjectGuid>
<RootNamespace>langs</RootNamespace>
<Keyword>MakeFileProj</Keyword>
</PropertyGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
<ConfigurationType>Utility</ConfigurationType>
<UseOfMfc>false</UseOfMfc>
<PlatformToolset>v142</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>
<OutDir Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">..\bin\lang\</OutDir>
<IntDir Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">..\objs\langs\</IntDir>
</PropertyGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
<PreBuildEvent>
<Message>Generating strings.h</Message>
<Command>..\objs\strgen\strgen.exe -s ..\src\lang -d ..\objs\langs\table</Command>
</PreBuildEvent>
<Midl>
<TypeLibraryName>./langs.tlb</TypeLibraryName>
<HeaderFileName>
</HeaderFileName>
</Midl>
</ItemDefinitionGroup>
<ItemGroup>
<CustomBuild Include="..\src\lang\english.txt">
<Message Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">Generating english language file</Message>
<Command Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">..\objs\strgen\strgen.exe -s ..\src\lang -d ..\bin\lang "%(FullPath)"</Command>
<AdditionalInputs Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">..\src\lang\english.txt;..\objs\strgen\strgen.exe;%(AdditionalInputs)</AdditionalInputs>
<Outputs Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">..\bin\lang\english.lng;%(Outputs)</Outputs>
</CustomBuild>
!!FILES!!
</ItemGroup>
<ItemGroup>
<ProjectReference Include="strgen_vs142.vcxproj">
<Project>{a133a442-bd0a-4ade-b117-ad7545e4bdd1}</Project>
<ReferenceOutputAssembly>false</ReferenceOutputAssembly>
</ProjectReference>
</ItemGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
<ImportGroup Label="ExtensionTargets">
</ImportGroup>
</Project>
|