mirror of
https://github.com/Genymobile/scrcpy
synced 2025-09-05 08:45:47 +00:00
Fix scrcpy() return value
The scrcpy() function returns a SDL_bool to indicate its success, but was initialized to 0 (SDL_FALSE) instead of SDL_TRUE.
This commit is contained in:
@@ -519,7 +519,7 @@ void event_loop(void) {
|
||||
}
|
||||
|
||||
SDL_bool scrcpy(const char *serial, Uint16 local_port, Uint16 max_size, Uint32 bit_rate) {
|
||||
SDL_bool ret = 0;
|
||||
SDL_bool ret = SDL_TRUE;
|
||||
|
||||
process_t push_proc = push_server(serial);
|
||||
if (wait_for_success(push_proc, "adb push")) {
|
||||
|
Reference in New Issue
Block a user