testdisplayinfo: use correct index variable

This commit is contained in:
capehill 2023-03-26 21:51:18 +03:00 committed by Sylvain Becker
parent 203a2a76fc
commit d5fac067cd
1 changed files with 1 additions and 1 deletions

View File

@ -89,7 +89,7 @@ int main(int argc, char *argv[])
for (m = 0; m < num_modes; m++) {
char prefix[64];
(void)SDL_snprintf(prefix, sizeof(prefix), " MODE %d", m);
print_mode(prefix, modes[i]);
print_mode(prefix, modes[m]);
}
SDL_free(modes);