mirror of
https://github.com/glfw/glfw.git
synced 2024-11-12 17:51:48 +00:00
Added hilighting of desktop mode.
This commit is contained in:
parent
d109d8a6d2
commit
5527e52f58
@ -30,6 +30,7 @@
|
|||||||
#include <GL/glfw3.h>
|
#include <GL/glfw3.h>
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
#include <string.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
|
||||||
#include "getopt.h"
|
#include "getopt.h"
|
||||||
@ -118,6 +119,10 @@ static void list_modes(void)
|
|||||||
{
|
{
|
||||||
printf("%3u: ", (unsigned int) i);
|
printf("%3u: ", (unsigned int) i);
|
||||||
print_mode(modes + i);
|
print_mode(modes + i);
|
||||||
|
|
||||||
|
if (memcmp(&desktop_mode, modes + i, sizeof(GLFWvidmode)) == 0)
|
||||||
|
printf(" (desktop mode)");
|
||||||
|
|
||||||
putchar('\n');
|
putchar('\n');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user