You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
OpenTTD-patches/src/video
Nikolas Nyby f13b184588 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
5 years ago
..
cocoa Fix: Some typos found using codespell 5 years ago
allegro_v.cpp Codechange: use std::vector for _resolutions 5 years ago
allegro_v.h Codechange: Use override specifer for overriding member declarations 5 years ago
dedicated_v.cpp Cleanup: Remove duplicate thread.h include (#7683) 5 years ago
dedicated_v.h Codechange: Use override specifer for overriding member declarations 5 years ago
null_v.cpp Codechange: Use null pointer literal instead of the NULL macro 5 years ago
null_v.h Codechange: Use override specifer for overriding member declarations 5 years ago
sdl2_v.cpp Codechange: Don't use SDL_CreateRGBSurfaceWithFormat() 5 years ago
sdl2_v.h Add #6173: New SDL 2 based video and sound drivers (#7086) 5 years ago
sdl_v.cpp Codechange: use std::vector for _resolutions 5 years ago
sdl_v.h Codechange: Use override specifer for overriding member declarations 5 years ago
video_driver.hpp Codechange: use std::vector for _resolutions 5 years ago
win32_v.cpp Codechange: use std::vector for _resolutions 5 years ago
win32_v.h Codechange: Use override specifer for overriding member declarations 5 years ago