mirror of
https://github.com/kunkundi/crossdesk.git
synced 2025-10-26 20:25:34 +08:00
Add icon
This commit is contained in:
1
icon/app.rc
Normal file
1
icon/app.rc
Normal file
@@ -0,0 +1 @@
|
|||||||
|
IDI_ICON1 ICON "app_icon.ico"
|
||||||
BIN
icon/app_icon.ico
Normal file
BIN
icon/app_icon.ico
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 687 B |
BIN
icon/捕获.PNG
BIN
icon/捕获.PNG
Binary file not shown.
|
Before Width: | Height: | Size: 30 KiB |
BIN
icon/捕获.ico
BIN
icon/捕获.ico
Binary file not shown.
|
Before Width: | Height: | Size: 84 KiB |
@@ -424,19 +424,19 @@ int Render::Run() {
|
|||||||
ImGui_ImplSDLRenderer2_RenderDrawData(ImGui::GetDrawData());
|
ImGui_ImplSDLRenderer2_RenderDrawData(ImGui::GetDrawData());
|
||||||
SDL_RenderPresent(main_renderer_);
|
SDL_RenderPresent(main_renderer_);
|
||||||
|
|
||||||
frame_count_++;
|
// frame_count_++;
|
||||||
end_time_ = SDL_GetTicks();
|
// end_time_ = SDL_GetTicks();
|
||||||
elapsed_time_ = end_time_ - start_time_;
|
// elapsed_time_ = end_time_ - start_time_;
|
||||||
if (elapsed_time_ >= 1000) {
|
// if (elapsed_time_ >= 1000) {
|
||||||
fps_ = frame_count_ / (elapsed_time_ / 1000);
|
// fps_ = frame_count_ / (elapsed_time_ / 1000);
|
||||||
frame_count_ = 0;
|
// frame_count_ = 0;
|
||||||
window_title = "Remote Desk Client FPS [" + std::to_string(fps_) +
|
// window_title = "Remote Desk Client FPS [" + std::to_string(fps_) +
|
||||||
"] status [" + connection_status_str_ + "|" +
|
// "] status [" + connection_status_str_ + "|" +
|
||||||
connection_status_str_ + "]";
|
// connection_status_str_ + "]";
|
||||||
// For MacOS, UI frameworks can only be called from the main thread
|
// // For MacOS, UI frameworks can only be called from the main thread
|
||||||
SDL_SetWindowTitle(main_window_, window_title.c_str());
|
// SDL_SetWindowTitle(main_window_, window_title.c_str());
|
||||||
start_time_ = end_time_;
|
// start_time_ = end_time_;
|
||||||
}
|
// }
|
||||||
}
|
}
|
||||||
|
|
||||||
// Cleanup
|
// Cleanup
|
||||||
|
|||||||
@@ -133,7 +133,7 @@ target("remote_desk")
|
|||||||
elseif is_os("linux") then
|
elseif is_os("linux") then
|
||||||
add_packages("ffmpeg")
|
add_packages("ffmpeg")
|
||||||
end
|
end
|
||||||
add_files("src/gui/main.cpp")
|
add_files("src/gui/main.cpp", "icon/app.rc")
|
||||||
|
|
||||||
-- target("screen_capturer")
|
-- target("screen_capturer")
|
||||||
-- set_kind("binary")
|
-- set_kind("binary")
|
||||||
|
|||||||
Reference in New Issue
Block a user