shithub: cstory

Download patch

ref: 5aea2ad77be112076e51c79a27aada9b3893d84f
parent: 4e5b2435c49e4909ba60b9e720c141a5a73aab6c
author: cuckydev <[email protected]>
date: Sun Feb 10 15:46:33 EST 2019

Fortnite

--- a/src/Draw.cpp
+++ b/src/Draw.cpp
@@ -241,17 +241,9 @@
 	fp = SDL_RWFromFile(path, "rb");
 	if (fp)
 	{
-		if (!IsEnableBitmap(fp))
-		{
-			printf("Tried to load bitmap to surface %d, but it's missing the '(C)Pixel' string\n", surf_no);
-		}
-		else
-		{
-
-			printf("Loading surface (as .bmp) from %s for surface id %d\n", path, surf_no);
-			if (LoadBitmap(fp, surf_no, create_surface))
-				return true;
-		}
+		printf("Loading surface (as .bmp) from %s for surface id %d\n", path, surf_no);
+		if (LoadBitmap(fp, surf_no, create_surface))
+			return true;
 	}
 	
 	printf("Failed to open file %s\n", name);
--- a/src/Main.cpp
+++ b/src/Main.cpp
@@ -280,6 +280,7 @@
 		}
 		
 		//Create window
+		SDL_SetHint(SDL_HINT_RENDER_DRIVER, "opengl");
 		gWindow = SDL_CreateWindow(lpWindowName, SDL_WINDOWPOS_CENTERED, SDL_WINDOWPOS_CENTERED, gWindowWidth, gWindowHeight, bFullscreen ? SDL_WINDOW_FULLSCREEN : 0);
 		
 		if (gWindow)