uxn

Varvara Ordinator, written in ANSI C(SDL2)
git clone https://git.eamoncaddigan.net/uxn.git
Log | Files | Refs | README | LICENSE

commit 6f406eebfc928598297e886fa7127d0d561783f9
parent acf517c422508829714e5a0b90e592deaef8c32c
Author: Andrew Alderwick <andrew@alderwick.co.uk>
Date:   Fri, 11 Jun 2021 11:25:17 +0100

Removed lock/unlock for screenshot

Diffstat:
Msrc/uxnemu.c | 2--
1 file changed, 0 insertions(+), 2 deletions(-)

diff --git a/src/uxnemu.c b/src/uxnemu.c @@ -91,10 +91,8 @@ save_screenshot(void) int w, h; SDL_GetRendererOutputSize(gRenderer, &w, &h); SDL_Surface *surface = SDL_CreateRGBSurfaceWithFormat(0, w, h, 32, format); - SDL_LockSurface(surface); SDL_RenderReadPixels(gRenderer, NULL, format, surface->pixels, surface->pitch); SDL_SaveBMP(surface, "screenshot.bmp"); - SDL_UnlockSurface(surface); SDL_FreeSurface(surface); }