Files
@ r23882:d683a0787bc9
Branch filter:
Location: cpp/openttd-patchpack/source/projects/basesets_vs140.vcxproj - annotation
r23882:d683a0787bc9
10.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
r23209:3f88d406e1cd r23209:3f88d406e1cd r23209:3f88d406e1cd r23209:3f88d406e1cd r23209:3f88d406e1cd r23209:3f88d406e1cd r23209:3f88d406e1cd r23209:3f88d406e1cd r23209:3f88d406e1cd r23209:3f88d406e1cd r23209:3f88d406e1cd r23209:3f88d406e1cd r23209:3f88d406e1cd r23209:3f88d406e1cd r23209:3f88d406e1cd r23209:3f88d406e1cd r23209:3f88d406e1cd r23209:3f88d406e1cd r23209:3f88d406e1cd r23209:3f88d406e1cd r23209:3f88d406e1cd r23209:3f88d406e1cd r23209:3f88d406e1cd r23209:3f88d406e1cd r23209:3f88d406e1cd r23209:3f88d406e1cd r23209:3f88d406e1cd r23209:3f88d406e1cd r23209:3f88d406e1cd r23209:3f88d406e1cd r23209:3f88d406e1cd r23209:3f88d406e1cd r23209:3f88d406e1cd r23209:3f88d406e1cd r23209:3f88d406e1cd r23209:3f88d406e1cd r23209:3f88d406e1cd r23209:3f88d406e1cd r23209:3f88d406e1cd r23209:3f88d406e1cd r23209:3f88d406e1cd r23209:3f88d406e1cd r23209:3f88d406e1cd r23209:3f88d406e1cd r23209:3f88d406e1cd r23209:3f88d406e1cd r23209:3f88d406e1cd r23209:3f88d406e1cd r23209:3f88d406e1cd r23209:3f88d406e1cd r23209:3f88d406e1cd r23209:3f88d406e1cd r23209:3f88d406e1cd r23209:3f88d406e1cd r23209:3f88d406e1cd r23209:3f88d406e1cd r23209:3f88d406e1cd r23209:3f88d406e1cd r23209:3f88d406e1cd r23209:3f88d406e1cd r23209:3f88d406e1cd r23209:3f88d406e1cd r23209:3f88d406e1cd r23209:3f88d406e1cd r23209:3f88d406e1cd r23209:3f88d406e1cd r23209:3f88d406e1cd r23209:3f88d406e1cd r23209:3f88d406e1cd r23209:3f88d406e1cd r23209:3f88d406e1cd r23209:3f88d406e1cd r23209:3f88d406e1cd r23209:3f88d406e1cd r23209:3f88d406e1cd r23209:3f88d406e1cd r23209:3f88d406e1cd r23209:3f88d406e1cd r23209:3f88d406e1cd r23209:3f88d406e1cd r23209:3f88d406e1cd r23209:3f88d406e1cd r23209:3f88d406e1cd r23209:3f88d406e1cd r23209:3f88d406e1cd r23209:3f88d406e1cd r23209:3f88d406e1cd r23209:3f88d406e1cd r23209:3f88d406e1cd r23209:3f88d406e1cd r23209:3f88d406e1cd r23209:3f88d406e1cd r23209:3f88d406e1cd r23209:3f88d406e1cd r23209:3f88d406e1cd r23209:3f88d406e1cd r23209:3f88d406e1cd r23209:3f88d406e1cd r23209:3f88d406e1cd | <?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>basesets</ProjectName>
<ProjectGuid>{E12E77CA-C0F1-4ADA-943F-4929274249D3}</ProjectGuid>
<RootNamespace>basesets</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>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">
<Langs>..\src\lang\afrikaans.txt;..\src\lang\arabic_egypt.txt;..\src\lang\basque.txt;..\src\lang\belarusian.txt;..\src\lang\brazilian_portuguese.txt;..\src\lang\bulgarian.txt;..\src\lang\catalan.txt;..\src\lang\croatian.txt;..\src\lang\czech.txt;..\src\lang\danish.txt;..\src\lang\dutch.txt;..\src\lang\english.txt;..\src\lang\english_AU.txt;..\src\lang\english_US.txt;..\src\lang\esperanto.txt;..\src\lang\estonian.txt;..\src\lang\faroese.txt;..\src\lang\finnish.txt;..\src\lang\french.txt;..\src\lang\gaelic.txt;..\src\lang\galician.txt;..\src\lang\german.txt;..\src\lang\greek.txt;..\src\lang\hebrew.txt;..\src\lang\hungarian.txt;..\src\lang\icelandic.txt;..\src\lang\indonesian.txt;..\src\lang\irish.txt;..\src\lang\italian.txt;..\src\lang\japanese.txt;..\src\lang\korean.txt;..\src\lang\latin.txt;..\src\lang\latvian.txt;..\src\lang\lithuanian.txt;..\src\lang\luxembourgish.txt;..\src\lang\malay.txt;..\src\lang\norwegian_bokmal.txt;..\src\lang\norwegian_nynorsk.txt;..\src\lang\polish.txt;..\src\lang\portuguese.txt;..\src\lang\romanian.txt;..\src\lang\russian.txt;..\src\lang\serbian.txt;..\src\lang\simplified_chinese.txt;..\src\lang\slovak.txt;..\src\lang\slovenian.txt;..\src\lang\spanish.txt;..\src\lang\spanish_MX.txt;..\src\lang\swedish.txt;..\src\lang\tamil.txt;..\src\lang\thai.txt;..\src\lang\traditional_chinese.txt;..\src\lang\turkish.txt;..\src\lang\ukrainian.txt;..\src\lang\vietnamese.txt;..\src\lang\welsh.txt</Langs>
</PropertyGroup>
<PropertyGroup>
<OutDir Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">..\bin\baseset\</OutDir>
<IntDir Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">..\objs\baseset\</IntDir>
</PropertyGroup>
<ItemGroup>
<CustomBuild Include="..\media\baseset\no_music.obm">
<Message Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">Generating no_music.obm baseset metadata file</Message>
<Command Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">cscript //nologo ..\media\baseset\translations.vbs "%(FullPath)" "$(OutputPath)no_music.obm" ..\src\lang ..\bin\baseset\orig_extra.grf</Command>
<AdditionalInputs Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">$(Langs);..\bin\baseset\orig_extra.grf;%(AdditionalInputs)</AdditionalInputs>
<Outputs Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">..\bin\baseset\no_music.obm;%(Outputs)</Outputs>
</CustomBuild>
<CustomBuild Include="..\media\baseset\no_sound.obs">
<Message Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">Generating no_sound.obs baseset metadata file</Message>
<Command Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">cscript //nologo ..\media\baseset\translations.vbs "%(FullPath)" "$(OutputPath)no_sound.obs" ..\src\lang ..\bin\baseset\orig_extra.grf</Command>
<AdditionalInputs Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">$(Langs);..\bin\baseset\orig_extra.grf;%(AdditionalInputs)</AdditionalInputs>
<Outputs Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">..\bin\baseset\no_sound.obs;%(Outputs)</Outputs>
</CustomBuild>
<CustomBuild Include="..\media\baseset\orig_dos.obg">
<Message Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">Generating orig_dos.obg baseset metadata file</Message>
<Command Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">cscript //nologo ..\media\baseset\translations.vbs "%(FullPath)" "$(OutputPath)orig_dos.obg" ..\src\lang ..\bin\baseset\orig_extra.grf</Command>
<AdditionalInputs Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">$(Langs);..\bin\baseset\orig_extra.grf;%(AdditionalInputs)</AdditionalInputs>
<Outputs Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">..\bin\baseset\orig_dos.obg;%(Outputs)</Outputs>
</CustomBuild>
<CustomBuild Include="..\media\baseset\orig_dos.obm">
<Message Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">Generating orig_dos.obm baseset metadata file</Message>
<Command Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">cscript //nologo ..\media\baseset\translations.vbs "%(FullPath)" "$(OutputPath)orig_dos.obm" ..\src\lang ..\bin\baseset\orig_extra.grf</Command>
<AdditionalInputs Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">$(Langs);..\bin\baseset\orig_extra.grf;%(AdditionalInputs)</AdditionalInputs>
<Outputs Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">..\bin\baseset\orig_dos.obm;%(Outputs)</Outputs>
</CustomBuild>
<CustomBuild Include="..\media\baseset\orig_dos.obs">
<Message Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">Generating orig_dos.obs baseset metadata file</Message>
<Command Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">cscript //nologo ..\media\baseset\translations.vbs "%(FullPath)" "$(OutputPath)orig_dos.obs" ..\src\lang ..\bin\baseset\orig_extra.grf</Command>
<AdditionalInputs Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">$(Langs);..\bin\baseset\orig_extra.grf;%(AdditionalInputs)</AdditionalInputs>
<Outputs Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">..\bin\baseset\orig_dos.obs;%(Outputs)</Outputs>
</CustomBuild>
<CustomBuild Include="..\media\baseset\orig_dos_de.obg">
<Message Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">Generating orig_dos_de.obg baseset metadata file</Message>
<Command Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">cscript //nologo ..\media\baseset\translations.vbs "%(FullPath)" "$(OutputPath)orig_dos_de.obg" ..\src\lang ..\bin\baseset\orig_extra.grf</Command>
<AdditionalInputs Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">$(Langs);..\bin\baseset\orig_extra.grf;%(AdditionalInputs)</AdditionalInputs>
<Outputs Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">..\bin\baseset\orig_dos_de.obg;%(Outputs)</Outputs>
</CustomBuild>
<CustomBuild Include="..\media\baseset\orig_tto.obm">
<Message Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">Generating orig_tto.obm baseset metadata file</Message>
<Command Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">cscript //nologo ..\media\baseset\translations.vbs "%(FullPath)" "$(OutputPath)orig_tto.obm" ..\src\lang ..\bin\baseset\orig_extra.grf</Command>
<AdditionalInputs Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">$(Langs);..\bin\baseset\orig_extra.grf;%(AdditionalInputs)</AdditionalInputs>
<Outputs Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">..\bin\baseset\orig_tto.obm;%(Outputs)</Outputs>
</CustomBuild>
<CustomBuild Include="..\media\baseset\orig_win.obg">
<Message Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">Generating orig_win.obg baseset metadata file</Message>
<Command Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">cscript //nologo ..\media\baseset\translations.vbs "%(FullPath)" "$(OutputPath)orig_win.obg" ..\src\lang ..\bin\baseset\orig_extra.grf</Command>
<AdditionalInputs Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">$(Langs);..\bin\baseset\orig_extra.grf;%(AdditionalInputs)</AdditionalInputs>
<Outputs Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">..\bin\baseset\orig_win.obg;%(Outputs)</Outputs>
</CustomBuild>
<CustomBuild Include="..\media\baseset\orig_win.obm">
<Message Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">Generating orig_win.obm baseset metadata file</Message>
<Command Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">cscript //nologo ..\media\baseset\translations.vbs "%(FullPath)" "$(OutputPath)orig_win.obm" ..\src\lang ..\bin\baseset\orig_extra.grf</Command>
<AdditionalInputs Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">$(Langs);..\bin\baseset\orig_extra.grf;%(AdditionalInputs)</AdditionalInputs>
<Outputs Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">..\bin\baseset\orig_win.obm;%(Outputs)</Outputs>
</CustomBuild>
<CustomBuild Include="..\media\baseset\orig_win.obs">
<Message Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">Generating orig_win.obs baseset metadata file</Message>
<Command Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">cscript //nologo ..\media\baseset\translations.vbs "%(FullPath)" "$(OutputPath)orig_win.obs" ..\src\lang ..\bin\baseset\orig_extra.grf</Command>
<AdditionalInputs Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">$(Langs);..\bin\baseset\orig_extra.grf;%(AdditionalInputs)</AdditionalInputs>
<Outputs Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">..\bin\baseset\orig_win.obs;%(Outputs)</Outputs>
</CustomBuild>
</ItemGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
<ImportGroup Label="ExtensionTargets">
</ImportGroup>
</Project>
|