From 0953bc1f9ba163251995b2d06ac388c1441563b6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nic=20Soud=C3=A9e?= Date: Thu, 16 Aug 2018 09:15:57 -0400 Subject: [PATCH] Fix bug in -help video mode listing The mode_index is being incremented by 12, but we are only displaying 6 video modes per line. This results in the "Available video modes" listing to ignore half of the valid video modes. --- src/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.c b/src/main.c index 177a3c1a..b102cbca 100644 --- a/src/main.c +++ b/src/main.c @@ -176,7 +176,7 @@ void Display_syntax(void) fputs(syntax, stdout); i = snprintf(modes, sizeof(modes), "Available video modes:\n\n"); - for (mode_index = 0; mode_index < Nb_video_modes; mode_index += 12) + for (mode_index = 0; mode_index < Nb_video_modes; mode_index += 6) { int k; for (k = 0; k < 6; k++)