diff --git a/remote_desk_gui/main.cpp b/remote_desk_gui/main.cpp index e40c1b5..af73d97 100644 --- a/remote_desk_gui/main.cpp +++ b/remote_desk_gui/main.cpp @@ -39,7 +39,12 @@ extern "C" { #include "x.h" #define NV12_BUFFER_SIZE 1280 * 720 * 3 / 2 + +#ifdef REMOTE_DESK_DEBUG #define MOUSE_CONTROL 0 +#else +#define MOUSE_CONTROL 1 +#endif int screen_w = 1280, screen_h = 720; const int pixel_w = 1280, pixel_h = 720; diff --git a/xmake.lua b/xmake.lua index 0e2e22e..ceb970f 100644 --- a/xmake.lua +++ b/xmake.lua @@ -22,6 +22,10 @@ elseif is_os("macosx") then add_requires("ffmpeg 5.1.2", {system = false}) end +if is_mode("debug") then + add_defines("REMOTE_DESK_DEBUG") +end + add_packages("spdlog") includes("thirdparty")