Not control mouse in DEBUG mode

This commit is contained in:
dijunkun
2023-10-11 16:17:13 +08:00
parent c5f2f6cf82
commit 9c16a24867
2 changed files with 9 additions and 0 deletions

View File

@@ -39,7 +39,12 @@ extern "C" {
#include "x.h" #include "x.h"
#define NV12_BUFFER_SIZE 1280 * 720 * 3 / 2 #define NV12_BUFFER_SIZE 1280 * 720 * 3 / 2
#ifdef REMOTE_DESK_DEBUG
#define MOUSE_CONTROL 0 #define MOUSE_CONTROL 0
#else
#define MOUSE_CONTROL 1
#endif
int screen_w = 1280, screen_h = 720; int screen_w = 1280, screen_h = 720;
const int pixel_w = 1280, pixel_h = 720; const int pixel_w = 1280, pixel_h = 720;

View File

@@ -22,6 +22,10 @@ elseif is_os("macosx") then
add_requires("ffmpeg 5.1.2", {system = false}) add_requires("ffmpeg 5.1.2", {system = false})
end end
if is_mode("debug") then
add_defines("REMOTE_DESK_DEBUG")
end
add_packages("spdlog") add_packages("spdlog")
includes("thirdparty") includes("thirdparty")