19 lines
388 B
C++
19 lines
388 B
C++
#pragma once
|
|
|
|
#include <SDL_version.h>
|
|
|
|
#if SDL_VERSION_ATLEAST(2, 0, 0)
|
|
#include <SDL_surface.h>
|
|
#else
|
|
#include <SDL_video.h>
|
|
#endif
|
|
|
|
namespace devilution {
|
|
|
|
/**
|
|
* @brief Bilinear 32-bit scaling.
|
|
* Requires `src` and `dst` to have the same pixel format (ARGB8888 or RGBA8888).
|
|
*/
|
|
void BilinearScale32(SDL_Surface *src, SDL_Surface *dst);
|
|
|
|
} // namespace devilution
|