Browse Source

testdisplayinfo: use correct index variable

capehill 2 năm trước cách đây
mục cha
commit
d5fac067cd
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      test/testdisplayinfo.c

+ 1 - 1
test/testdisplayinfo.c

@@ -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);