mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-06-02 15:47:31 +08:00
testdisplayinfo: use correct index variable
This commit is contained in:
@@ -89,7 +89,7 @@ int main(int argc, char *argv[])
|
|||||||
for (m = 0; m < num_modes; m++) {
|
for (m = 0; m < num_modes; m++) {
|
||||||
char prefix[64];
|
char prefix[64];
|
||||||
(void)SDL_snprintf(prefix, sizeof(prefix), " MODE %d", m);
|
(void)SDL_snprintf(prefix, sizeof(prefix), " MODE %d", m);
|
||||||
print_mode(prefix, modes[i]);
|
print_mode(prefix, modes[m]);
|
||||||
}
|
}
|
||||||
SDL_free(modes);
|
SDL_free(modes);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user