33 PRAGMA48(GCC diagnostic ignored
"-Wshadow")
34 #ifndef SDL_BIG_ENDIAN
35 #include <SDL_endian.h>
41 Sdl2SoftwareScreenshotHelper::Sdl2SoftwareScreenshotHelper() :
46 Sdl2SoftwareScreenshotHelper::~Sdl2SoftwareScreenshotHelper()
50 void Sdl2SoftwareScreenshotHelper::prepare()
54 SDL_Surface *Sdl2SoftwareScreenshotHelper::getScreenshot()
59 #if SDL_BYTEORDER == SDL_BIG_ENDIAN
60 const int rmask = 0xff000000;
61 const int gmask = 0x00ff0000;
62 const int bmask = 0x0000ff00;
65 const int rmask = 0x000000ff;
66 const int gmask = 0x0000ff00;
67 const int bmask = 0x00ff0000;
70 const int amask = 0x00000000;
75 rmask, gmask, bmask, amask);
79 SDL_BlitSurface(
static_cast<SDL2SoftwareGraphics*
>(
#define MSDL_CreateRGBSurface(flags, w, h, d, r, g, b, a)
bool screenshot(InputEvent &event)