diff --git a/icon/app.rc b/icon/app.rc new file mode 100644 index 0000000..430cc63 --- /dev/null +++ b/icon/app.rc @@ -0,0 +1 @@ +IDI_ICON1 ICON "app_icon.ico" \ No newline at end of file diff --git a/icon/app_icon.ico b/icon/app_icon.ico new file mode 100644 index 0000000..e51034c Binary files /dev/null and b/icon/app_icon.ico differ diff --git a/icon/捕获.PNG b/icon/捕获.PNG deleted file mode 100644 index 139b293..0000000 Binary files a/icon/捕获.PNG and /dev/null differ diff --git a/icon/捕获.ico b/icon/捕获.ico deleted file mode 100644 index 722b2f4..0000000 Binary files a/icon/捕获.ico and /dev/null differ diff --git a/src/single_window/render.cpp b/src/single_window/render.cpp index bbf46ba..69444b9 100644 --- a/src/single_window/render.cpp +++ b/src/single_window/render.cpp @@ -424,19 +424,19 @@ int Render::Run() { ImGui_ImplSDLRenderer2_RenderDrawData(ImGui::GetDrawData()); SDL_RenderPresent(main_renderer_); - frame_count_++; - end_time_ = SDL_GetTicks(); - elapsed_time_ = end_time_ - start_time_; - if (elapsed_time_ >= 1000) { - fps_ = frame_count_ / (elapsed_time_ / 1000); - frame_count_ = 0; - window_title = "Remote Desk Client FPS [" + std::to_string(fps_) + - "] status [" + connection_status_str_ + "|" + - connection_status_str_ + "]"; - // For MacOS, UI frameworks can only be called from the main thread - SDL_SetWindowTitle(main_window_, window_title.c_str()); - start_time_ = end_time_; - } + // frame_count_++; + // end_time_ = SDL_GetTicks(); + // elapsed_time_ = end_time_ - start_time_; + // if (elapsed_time_ >= 1000) { + // fps_ = frame_count_ / (elapsed_time_ / 1000); + // frame_count_ = 0; + // window_title = "Remote Desk Client FPS [" + std::to_string(fps_) + + // "] status [" + connection_status_str_ + "|" + + // connection_status_str_ + "]"; + // // For MacOS, UI frameworks can only be called from the main thread + // SDL_SetWindowTitle(main_window_, window_title.c_str()); + // start_time_ = end_time_; + // } } // Cleanup diff --git a/xmake.lua b/xmake.lua index 86c9e71..559d646 100644 --- a/xmake.lua +++ b/xmake.lua @@ -133,7 +133,7 @@ target("remote_desk") elseif is_os("linux") then add_packages("ffmpeg") end - add_files("src/gui/main.cpp") + add_files("src/gui/main.cpp", "icon/app.rc") -- target("screen_capturer") -- set_kind("binary")