mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-03-20 15:51:07 +01:00
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:
@@ -153,8 +153,8 @@ int main(int argc, char *argv[])
|
||||
|
||||
drawstate->window = state->windows[i];
|
||||
drawstate->renderer = state->renderers[i];
|
||||
drawstate->sprite = LoadTexture(drawstate->renderer, "icon.bmp", true);
|
||||
drawstate->background = LoadTexture(drawstate->renderer, "sample.bmp", false);
|
||||
drawstate->sprite = LoadTexture(drawstate->renderer, "icon.png", true);
|
||||
drawstate->background = LoadTexture(drawstate->renderer, "sample.png", false);
|
||||
if (!drawstate->sprite || !drawstate->background) {
|
||||
quit(2);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user