Make the PNG capability test point at an image that actually exists.
This commit is contained in:
parent
cf9830ab3a
commit
c5db737d70
1 changed files with 5 additions and 2 deletions
|
@ -780,10 +780,13 @@ AC_RUN_IFELSE([AC_LANG_SOURCE([
|
|||
int main(int argc, char **argv)
|
||||
{
|
||||
SDL_RWops *src;
|
||||
char *testimage = "images/button-pressed.png";
|
||||
|
||||
src = SDL_RWFromFile("images/units/human-magi/mage.png", "rb");
|
||||
if (src == NULL)
|
||||
src = SDL_RWFromFile(testimage, "rb");
|
||||
if (src == NULL) {
|
||||
fprintf(stderr, "Can't find test image %s\n", testimage);
|
||||
exit(2);
|
||||
}
|
||||
exit(!IMG_isPNG(src));
|
||||
}
|
||||
])],
|
||||
|
|
Loading…
Add table
Reference in a new issue