~rabbits/nasu

2b0a07c327097052160befb38d05fcb827b98cff — neauoire 2 years ago 4739aa8
Trying to fix bmp export
1 files changed, 2 insertions(+), 1 deletions(-)

M nasu.c
M nasu.c => nasu.c +2 -1
@@ 436,9 436,10 @@ pasteclip(Uint8 *clip, int id)
int
savebmp(void)
{
	SDL_Rect rect = {0, 0, WIDTH * ZOOM, HEIGHT * ZOOM};
	SDL_Surface *surface = SDL_GetWindowSurface(gWindow);
	SDL_RenderReadPixels(gRenderer,
		NULL,
		&rect,
		SDL_PIXELFORMAT_ARGB8888,
		surface->pixels,
		surface->pitch);