summaryrefslogtreecommitdiff
path: root/src/graphics.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/graphics.cpp')
-rw-r--r--src/graphics.cpp6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/graphics.cpp b/src/graphics.cpp
index 33f25468..74b71888 100644
--- a/src/graphics.cpp
+++ b/src/graphics.cpp
@@ -256,13 +256,7 @@ SDL_Surface* Graphics::getScreenshot()
SDL_Surface *screenshot = SDL_CreateRGBSurface(SDL_SWSURFACE, mScreen->w,
mScreen->h, 24, rmask, gmask, bmask, amask);
- if (SDL_MUSTLOCK(mScreen)) {
- SDL_LockSurface(mScreen);
- }
SDL_BlitSurface(mScreen, NULL, screenshot, NULL);
- if (SDL_MUSTLOCK(mScreen)) {
- SDL_UnlockSurface(mScreen);
- }
return screenshot;
}