diff options
Diffstat (limited to 'src/render/sdl2graphics.cpp')
-rw-r--r-- | src/render/sdl2graphics.cpp | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/src/render/sdl2graphics.cpp b/src/render/sdl2graphics.cpp index 7bad93889..fa0c4a0d1 100644 --- a/src/render/sdl2graphics.cpp +++ b/src/render/sdl2graphics.cpp @@ -606,28 +606,6 @@ void SDLGraphics::updateScreen() BLOCK_END("Graphics::updateScreen") } -SDL_Surface *SDLGraphics::getScreenshot() -{ -#if SDL_BYTEORDER == SDL_BIG_ENDIAN - const int rmask = 0xff000000; - const int gmask = 0x00ff0000; - const int bmask = 0x0000ff00; -#else - const int rmask = 0x000000ff; - const int gmask = 0x0000ff00; - const int bmask = 0x00ff0000; -#endif - const int amask = 0x00000000; - - SDL_Surface *const screenshot = MSDL_CreateRGBSurface(SDL_SWSURFACE, - mRect.w, mRect.h, 24, rmask, gmask, bmask, amask); - -// if (screenshot) -// SDL_BlitSurface(mWindow, nullptr, screenshot, nullptr); - - return screenshot; -} - void SDLGraphics::calcWindow(ImageCollection *const vertCol, const int x, const int y, const int w, const int h, |