mirror of
https://github.com/kunkundi/crossdesk.git
synced 2025-10-26 20:25:34 +08:00
[fix] fix the fullscreen error when closing the connection
This commit is contained in:
@@ -569,7 +569,6 @@ int Render::Run() {
|
|||||||
if (event.type == SDL_QUIT) {
|
if (event.type == SDL_QUIT) {
|
||||||
if (streaming_) {
|
if (streaming_) {
|
||||||
LOG_INFO("Return to main interface");
|
LOG_INFO("Return to main interface");
|
||||||
streaming_ = false;
|
|
||||||
LOG_INFO("[{}] Leave connection [{}]", client_id_, remote_id_);
|
LOG_INFO("[{}] Leave connection [{}]", client_id_, remote_id_);
|
||||||
LeaveConnection(peer_reserved_ ? peer_reserved_ : peer_,
|
LeaveConnection(peer_reserved_ ? peer_reserved_ : peer_,
|
||||||
remote_id_.c_str());
|
remote_id_.c_str());
|
||||||
@@ -578,12 +577,15 @@ int Render::Run() {
|
|||||||
DestroyPeer(&peer_reserved_);
|
DestroyPeer(&peer_reserved_);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
streaming_ = false;
|
||||||
rejoin_ = false;
|
rejoin_ = false;
|
||||||
memset(audio_buffer_, 0, 960);
|
|
||||||
connection_established_ = false;
|
connection_established_ = false;
|
||||||
received_frame_ = false;
|
received_frame_ = false;
|
||||||
is_client_mode_ = false;
|
is_client_mode_ = false;
|
||||||
audio_capture_button_pressed_ = false;
|
audio_capture_button_pressed_ = false;
|
||||||
|
fullscreen_button_pressed_ = false;
|
||||||
|
SDL_SetWindowFullscreen(main_window_, SDL_FALSE);
|
||||||
|
memset(audio_buffer_, 0, 960);
|
||||||
SDL_SetWindowSize(main_window_, main_window_width_default_,
|
SDL_SetWindowSize(main_window_, main_window_width_default_,
|
||||||
main_window_height_default_);
|
main_window_height_default_);
|
||||||
|
|
||||||
|
|||||||
2
thirdparty/projectx
vendored
2
thirdparty/projectx
vendored
Submodule thirdparty/projectx updated: c67ce332f6...9d2e122fcc
Reference in New Issue
Block a user