Skip to content

Commit

Permalink
drm
Browse files Browse the repository at this point in the history
  • Loading branch information
patriciogonzalezvivo committed Mar 17, 2024
1 parent 1698f37 commit 244d2f8
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ if(MSVC)
add_definitions( -DPLATFORM_WINDOWS )
endif()

if (NO_X11 OR FORCE_GBM)
if (NO_X11 OR FORCE_DRM)
add_compile_options(-std=c++14 -DGLM_FORCE_CXX14 -fpermissive -Wno-psabi -lpthread)
endif()

Expand Down
2 changes: 1 addition & 1 deletion deps/lygia
Submodule lygia updated 230 files
8 changes: 4 additions & 4 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ int main(int argc, char **argv) {
else
std::cout << "Argument '" << argument << "' should be followed by a <pixels>. Skipping argument." << std::endl;
}
#if defined(DRIVER_GBM)
#if defined(DRIVER_DRM)
else if ( argument == "-d" || argument == "-display" || argument == "--display") {
if (++i < argc)
window_properties.display = std::string(argv[i]);
Expand All @@ -274,7 +274,7 @@ int main(int argc, char **argv) {
std::cout << version << std::endl;
}
else if ( argument == "-l" || argument == "-life-coding" || argument == "--life-coding" ){
#if defined(DRIVER_BROADCOM) || defined(DRIVER_GBM)
#if defined(DRIVER_BROADCOM) || defined(DRIVER_DRM)
window_properties.screen_x = window_properties.screen_width - 512;
window_properties.screen_width = window_properties.screen_height = 512;
#else
Expand Down Expand Up @@ -390,7 +390,7 @@ int main(int argc, char **argv) {
argument == "-s" || argument == "-size" || argument == "--size" ||
argument == "-w" || argument == "-width" || argument == "--width" ||
argument == "-h" || argument == "-height" || argument == "--height" ||
#if defined(DRIVER_GBM)
#if defined(DRIVER_DRM)
argument == "-d" || argument == "-display" || argument == "--display" ||
#endif
#if !defined(DRIVER_GLFW)
Expand Down Expand Up @@ -1994,7 +1994,7 @@ void printUsage(char * executableName) {
std::cerr << " -s or --size <pixels> # set width and height of the window" << std::endl;
std::cerr << " -w or --width <pixels> # set the width of the window" << std::endl;
std::cerr << " -h or --height <pixels> # set the height of the window" << std::endl;
#if defined(DRIVER_GBM)
#if defined(DRIVER_DRM)
std::cerr << " -d or --display <display> # open specific display port. Ex: -d /dev/dri/card1" << std::endl;
#endif
#if !defined(DRIVER_GLFW)
Expand Down

0 comments on commit 244d2f8

Please sign in to comment.