Files @ r23882:d683a0787bc9
Branch filter:

Location: cpp/openttd-patchpack/source/projects/basesets_vs142.vcxproj.filters - annotation

Nikolas Nyby
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
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
  <ItemGroup>
    <Filter Include="Baseset Metadata">
      <UniqueIdentifier>{b5a3ac67-19a9-4276-80e9-2360367d2680}</UniqueIdentifier>
    </Filter>
  </ItemGroup>
  <ItemGroup>
    <CustomBuild Include="..\media\baseset\no_music.obm">
      <Filter>Baseset Metadata</Filter>
    </CustomBuild>
    <CustomBuild Include="..\media\baseset\no_sound.obs">
      <Filter>Baseset Metadata</Filter>
    </CustomBuild>
    <CustomBuild Include="..\media\baseset\orig_dos.obg">
      <Filter>Baseset Metadata</Filter>
    </CustomBuild>
    <CustomBuild Include="..\media\baseset\orig_dos.obm">
      <Filter>Baseset Metadata</Filter>
    </CustomBuild>
    <CustomBuild Include="..\media\baseset\orig_dos.obs">
      <Filter>Baseset Metadata</Filter>
    </CustomBuild>
    <CustomBuild Include="..\media\baseset\orig_dos_de.obg">
      <Filter>Baseset Metadata</Filter>
    </CustomBuild>
    <CustomBuild Include="..\media\baseset\orig_tto.obm">
      <Filter>Baseset Metadata</Filter>
    </CustomBuild>
    <CustomBuild Include="..\media\baseset\orig_win.obg">
      <Filter>Baseset Metadata</Filter>
    </CustomBuild>
    <CustomBuild Include="..\media\baseset\orig_win.obm">
      <Filter>Baseset Metadata</Filter>
    </CustomBuild>
    <CustomBuild Include="..\media\baseset\orig_win.obs">
      <Filter>Baseset Metadata</Filter>
    </CustomBuild>
  </ItemGroup>
</Project>