mirror of https://github.com/libsdl-org/SDL
testdisplayinfo: use correct index variable
This commit is contained in:
parent
203a2a76fc
commit
d5fac067cd
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue