shithub: cstory

Download patch

ref: cbb11e6270b48c2560f7222e816f8040cc35958c
parent: 8fbf3bbecf9b149214714cc35c27164beb55153a
author: Clownacy <Clownacy@users.noreply.github.com>
date: Mon Apr 13 09:43:17 EDT 2020

Cleanup

--- a/src/Backends/GLFW3/Misc.cpp
+++ b/src/Backends/GLFW3/Misc.cpp
@@ -14,11 +14,11 @@
 
 #include "Window.h"
 #include "../Rendering.h"
+#include "../../Attributes.h"
 #include "../../Main.h"
 #include "../../Organya.h"
 #include "../../Profile.h"
 #include "../../Resource.h"
-#include "../../Attributes.h"
 
 #define DO_KEY(GLFW_KEY, BACKEND_KEY) \
 	case GLFW_KEY: \
--- a/src/Backends/Misc.h
+++ b/src/Backends/Misc.h
@@ -1,7 +1,7 @@
 #pragma once
 
-#include "../WindowsWrapper.h"
 #include "../Attributes.h"
+#include "../WindowsWrapper.h"
 
 enum
 {
--- a/src/Backends/Rendering/SDLSurface.cpp
+++ b/src/Backends/Rendering/SDLSurface.cpp
@@ -52,12 +52,11 @@
 	if (window != NULL)
 	{
 		if (fullscreen)
-		{
 			if (SDL_SetWindowFullscreen(window, SDL_WINDOW_FULLSCREEN) < 0)
 				Backend_PrintError("Could not set window to fullscreen: %s", SDL_GetError());
-		}
 
 		window_sdlsurface = SDL_GetWindowSurface(window);
+
 		if (window_sdlsurface != NULL)
 		{
 			framebuffer.sdlsurface = SDL_CreateRGBSurfaceWithFormat(0, window_sdlsurface->w, window_sdlsurface->h, 0, SDL_PIXELFORMAT_RGB24);