Remove default argument from loadFileToMemory()

Default function arguments are the devil, and it's better to be more
explicit about what you're passing into the function. Also because we
might become C-only in the future and to help faciliate that, we should
get rid of C++-isms like default function arguments now.
This commit is contained in:
Misa
2021-04-05 00:48:40 -07:00
committed by Ethan Lee
parent a11920e1a9
commit aea5611e5b
5 changed files with 5 additions and 5 deletions

View File

@@ -131,7 +131,7 @@ void Screen::LoadIcon(void)
size_t length = 0;
unsigned char *data;
unsigned int width, height;
FILESYSTEM_loadFileToMemory("VVVVVV.png", &fileIn, &length);
FILESYSTEM_loadFileToMemory("VVVVVV.png", &fileIn, &length, false);
lodepng_decode24(&data, &width, &height, fileIn, length);
FILESYSTEM_freeMemory(&fileIn);
SDL_Surface *icon = SDL_CreateRGBSurfaceFrom(