From f7f8ddd925da6114ffbbb949e982cb645ba98b12 Mon Sep 17 00:00:00 2001 From: dijunkun Date: Fri, 18 Apr 2025 15:39:31 +0800 Subject: [PATCH] [fix] fix log error --- src/single_window/render.cpp | 2 ++ src/single_window/render_callback_func.cpp | 3 +-- thirdparty/projectx | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/single_window/render.cpp b/src/single_window/render.cpp index f71f54a..c9d50d4 100644 --- a/src/single_window/render.cpp +++ b/src/single_window/render.cpp @@ -779,6 +779,8 @@ void Render::InitializeSDL() { screen_width_ = DM.w; screen_height_ = DM.h; + LOG_INFO("Screen resolution: [{}x{}]", screen_width_, screen_height_); + SDL_SetHint(SDL_HINT_RENDER_SCALE_QUALITY, "1"); } diff --git a/src/single_window/render_callback_func.cpp b/src/single_window/render_callback_func.cpp index 43fd4c2..cd4a7bf 100644 --- a/src/single_window/render_callback_func.cpp +++ b/src/single_window/render_callback_func.cpp @@ -270,8 +270,7 @@ void Render::OnReceiveDataBufferCb(const char *data, size_t size, if (ControlType::host_infomation == remote_action.type) { props->remote_host_name_ = std::string(remote_action.i.host_name, remote_action.i.host_name_size); - LOG_INFO("Remote hostname: [{}], resolution: [{}x{}]", - props->remote_host_name_); + LOG_INFO("Remote hostname: [{}]", props->remote_host_name_); } } else { if (ControlType::mouse == remote_action.type && render->mouse_controller_) { diff --git a/thirdparty/projectx b/thirdparty/projectx index 38c88e2..fb00234 160000 --- a/thirdparty/projectx +++ b/thirdparty/projectx @@ -1 +1 @@ -Subproject commit 38c88e27e07be9eb80dda0ac09745a77531e566a +Subproject commit fb00234498c539116f65fc6402119557da500231