From 5aea2ad77be112076e51c79a27aada9b3893d84f Mon Sep 17 00:00:00 2001 From: cuckydev Date: Sun, 10 Feb 2019 20:46:33 -0500 Subject: [PATCH] Fortnite --- src/Draw.cpp | 14 +++----------- src/Main.cpp | 1 + 2 files changed, 4 insertions(+), 11 deletions(-) diff --git a/src/Draw.cpp b/src/Draw.cpp index c561eb23..2a0f41aa 100644 --- a/src/Draw.cpp +++ b/src/Draw.cpp @@ -241,17 +241,9 @@ static bool LoadBitmap_File(const char *name, int surf_no, bool create_surface) 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); diff --git a/src/Main.cpp b/src/Main.cpp index 326b9a4c..ef45bc4c 100644 --- a/src/Main.cpp +++ b/src/Main.cpp @@ -280,6 +280,7 @@ int main(int argc, char *argv[]) } //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)