From 5527e52f58ae56146464bfd84f9b2fae69bfe957 Mon Sep 17 00:00:00 2001 From: Camilla Berglund Date: Mon, 7 May 2012 01:13:07 +0200 Subject: [PATCH] Added hilighting of desktop mode. --- tests/modes.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/modes.c b/tests/modes.c index db442167..c4572e0a 100644 --- a/tests/modes.c +++ b/tests/modes.c @@ -30,6 +30,7 @@ #include #include +#include #include #include "getopt.h" @@ -118,6 +119,10 @@ static void list_modes(void) { printf("%3u: ", (unsigned int) i); print_mode(modes + i); + + if (memcmp(&desktop_mode, modes + i, sizeof(GLFWvidmode)) == 0) + printf(" (desktop mode)"); + putchar('\n'); }