shithub: cstory

Download patch

ref: d70e31d22122a8aac852b6a50ff53420f003602e
parent: cbb11e6270b48c2560f7222e816f8040cc35958c
author: Clownacy <Clownacy@users.noreply.github.com>
date: Mon Apr 13 09:47:57 EDT 2020

Cleanup

--- a/src/Backends/Rendering/SDLTexture.cpp
+++ b/src/Backends/Rendering/SDLTexture.cpp
@@ -144,10 +144,8 @@
 	if (window != NULL)
 	{
 		if (fullscreen)
-		{
 			if (SDL_SetWindowFullscreen(window, SDL_WINDOW_FULLSCREEN) < 0)
 				Backend_PrintError("Couldn't set window to fullscreen: %s", SDL_GetError());
-		}
 
 	#if SDL_VERSION_ATLEAST(2,0,10)
 		SDL_SetHint(SDL_HINT_RENDER_BATCHING, "1");	// We never interfere with the renderer, so don't let SDL implicitly disable batching
@@ -344,6 +342,7 @@
 	free(surface->pixels);
 
 	SDL_Rect rect = {0, 0, (int)width, (int)height};
+
 	if (SDL_UpdateTexture(surface->texture, &rect, buffer, width * 4) < 0)
 		Backend_PrintError("Couldn't update part of texture: %s", SDL_GetError());