From d2504f974c05a7f15efda631decd1e6b31a0981e Mon Sep 17 00:00:00 2001 From: Romain Vimont Date: Tue, 28 May 2019 13:37:27 +0200 Subject: [PATCH] Fix indentation Previous refactorings broke indentation. --- app/src/scrcpy.c | 3 +-- app/src/server.h | 16 ++++++++-------- 2 files changed, 9 insertions(+), 10 deletions(-) diff --git a/app/src/scrcpy.c b/app/src/scrcpy.c index b777b770..4a0c045c 100644 --- a/app/src/scrcpy.c +++ b/app/src/scrcpy.c @@ -421,8 +421,7 @@ finally_destroy_server: wait_show_touches(proc_show_touches); } LOGI("Disable show_touches"); - proc_show_touches = set_show_touches_enabled(options->serial, - false); + proc_show_touches = set_show_touches_enabled(options->serial, false); wait_show_touches(proc_show_touches); } diff --git a/app/src/server.h b/app/src/server.h index 0f25d48f..c72dbdd6 100644 --- a/app/src/server.h +++ b/app/src/server.h @@ -18,12 +18,12 @@ struct server { bool send_frame_meta; // request frame PTS to be able to record properly }; -#define SERVER_INITIALIZER { \ - .serial = NULL, \ - .process = PROCESS_NONE, \ - .server_socket = INVALID_SOCKET, \ - .device_socket = INVALID_SOCKET, \ - .local_port = 0, \ +#define SERVER_INITIALIZER { \ + .serial = NULL, \ + .process = PROCESS_NONE, \ + .server_socket = INVALID_SOCKET, \ + .device_socket = INVALID_SOCKET, \ + .local_port = 0, \ .tunnel_enabled = false, \ .tunnel_forward = false, \ .send_frame_meta = false, \ @@ -36,8 +36,8 @@ server_init(struct server *server); // push, enable tunnel et start the server bool server_start(struct server *server, const char *serial, - uint16_t local_port, uint16_t max_size, uint32_t bit_rate, - const char *crop, bool send_frame_meta); + uint16_t local_port, uint16_t max_size, uint32_t bit_rate, + const char *crop, bool send_frame_meta); // block until the communication with the server is established socket_t