Use PNG files for tests and examples

These are much smaller than the previous BMP files

Fixes https://github.com/libsdl-org/SDL/issues/14159
This commit is contained in:
Sam Lantinga
2025-10-06 11:45:48 -07:00
parent 7454302cd0
commit bb0d6221c1
143 changed files with 10608 additions and 147151 deletions

View File

@@ -21,7 +21,7 @@
#define MAX_SPEED 1
static SDLTest_CommonState *state;
static const char *icon = "icon.bmp";
static const char *icon = "icon.png";
static int num_sprites;
static SDL_Texture **sprites;
static bool cycle_color;
@@ -56,7 +56,7 @@ static int LoadSprite(const char *file)
int i;
for (i = 0; i < state->num_windows; ++i) {
/* This does the SDL_LoadBMP step repeatedly, but that's OK for test code. */
/* This does the SDL_LoadPNG step repeatedly, but that's OK for test code. */
if (sprites[i]) {
SDL_DestroyTexture(sprites[i]);
}
@@ -488,7 +488,7 @@ SDL_AppResult SDL_AppInit(void **appstate, int argc, char *argv[])
"[--iterations N]",
"[--use-rendergeometry mode1|mode2]",
"[num_sprites]",
"[icon.bmp]",
"[icon.png]",
NULL
};
SDLTest_CommonLogUsage(state, argv[0], options);