From 04005733f7831be9003b46b15786f809270cd6c9 Mon Sep 17 00:00:00 2001 From: Patricio Gonzalez Vivo Date: Sat, 23 Dec 2023 16:00:53 -0500 Subject: [PATCH] fixing for RPI5 --- CMakeLists.txt | 2 +- src/main.cpp | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index daed3698..3446f79e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -7,7 +7,7 @@ set(VERSION "${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_PATCH}") project(glslViewer VERSION ${VERSION} - LANGUAGES CXX ) + LANGUAGES C CXX ) set(CMAKE_CXX_STANDARD 14) set(CMAKE_CXX_STANDARD_REQUIRED ON) diff --git a/src/main.cpp b/src/main.cpp index 4c8b27ce..1800d590 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -1994,7 +1994,12 @@ void printUsage(char * executableName) { std::cerr << " -s or --size # set width and height of the window" << std::endl; std::cerr << " -w or --width # set the width of the window" << std::endl; std::cerr << " -h or --height # set the height of the window" << std::endl; +#if defined(DRIVER_GBM) std::cerr << " -d or --display # open specific display port. Ex: -d /dev/dri/card1" << std::endl; +#endif +#if !defined(DRIVER_GLFW) + std::cerr << " -m or --mouse # open specific mouse port. Ex: -d /dev/input/mice" << std::endl; +#endif std::cerr << " -f or --fullscreen # load the window in fullscreen" << std::endl; std::cerr << " -l or --life-coding # live code mode, where the billboard is allways visible" << std::endl; std::cerr << " -ss or --screensaver # screensaver mode, any pressed key will exit" << std::endl;