- 27 3月, 2018 1 次提交
-
-
由 Romain Vimont 提交于
SDL_CreateTexture() is called both during initialization and on frame size change. To avoid inconsistent changes to arguments value, factorize them to a single function create_texture().
-
- 26 3月, 2018 1 次提交
-
-
由 Romain Vimont 提交于
Double-clicks were not sent to the device anymore since the "double-click on black borders" feature. When a double click occurs inside the device screen, send the event to the device normally. Fixes <https://github.com/Genymobile/scrcpy/issues/97>.
-
- 25 3月, 2018 6 次提交
-
-
由 Romain Vimont 提交于
macOS specific README changes
-
由 Viktor Oreshkin 提交于
And remove gcc from the packages list, clang is available by default.
-
由 Romain Vimont 提交于
Add instructions to run via Docker
-
由 Romain Vimont 提交于
Update README.md
-
由 Sean 提交于
Fix Typo
-
由 Pierre Gordon 提交于
-
- 24 3月, 2018 3 次提交
-
-
由 Romain Vimont 提交于
Add links to FFmpeg and LibSDL2 dependencies
-
由 Owen Campbell 提交于
-
由 Owen Campbell 提交于
-
- 23 3月, 2018 4 次提交
-
-
由 Romain Vimont 提交于
On H.264 stream EOF, the eof_reached flag is set, but av_read_frame() still provides a frame, so check the flag only afterwards. As a side-effect, it also fixes a memory leak (the very last packet was not unref).
-
由 Romain Vimont 提交于
-
由 Romain Vimont 提交于
Since _scrcpy_ also supports `adb forward`, remove the part about `adb reverse`. Make explicit that _adb_ is included in the prebuilt application for Windows (many users manually download the platform-tools for no reason).
-
由 Romain Vimont 提交于
Since nothing is printed to the console, we need a way to get the output in case of errors. Describe how in the README.
-
- 22 3月, 2018 1 次提交
-
-
由 Romain Vimont 提交于
Request SDL not to replace the SIGINT and SIGTERM handlers, so that the process is immediately terminated on Ctrl+C. This avoids process hanging on Ctrl+C during network calls on initialization. Some of them accepted a timeout, but it was not used since commit 9b056f50 anymore.
-
- 21 3月, 2018 2 次提交
-
-
由 Romain Vimont 提交于
Remove unnecessary additional blocks.
-
由 Romain Vimont 提交于
All headers and sources are in src/. To avoid using relative includes from subdirectories ("../../"), include the source root directory.
-
- 18 3月, 2018 1 次提交
-
-
由 Romain Vimont 提交于
This is not obvious to everyone, especially non-developers.
-
- 16 3月, 2018 2 次提交
-
-
由 Romain Vimont 提交于
In "adb forward" mode, it may take a while before the server socket is listening, so increase the number of connection attempts. See <https://github.com/Genymobile/scrcpy/issues/5#issuecomment-373718551>.
-
由 Romain Vimont 提交于
The types size_t and ssize_t are defined on Windows (in MSYS2), so there is no need to typedef SIZE_T and SSIZE_T. Exit code is "unsigned long" both on Windows 32 and 64 bits. See <https://github.com/Genymobile/scrcpy/issues/46#issuecomment-373603596>.
-
- 15 3月, 2018 5 次提交
-
-
由 Romain Vimont 提交于
For consistency with mouse button events handling, directly assign from Sint32 to Uint16.
-
由 Romain Vimont 提交于
Mouse "wheel button" is meaningless :)
-
由 Romain Vimont 提交于
For readability and consistency, indent case statatements, and remove unnecessary additional blocks.
-
由 Romain Vimont 提交于
On some devices, mouse clicks do not work by default. Enabling an option is required.
-
由 Romain Vimont 提交于
-
- 14 3月, 2018 7 次提交
-
-
由 Romain Vimont 提交于
Two issues described in the FAQ have been fixed by V1.1. Remove them from the FAQ.
-
由 Romain Vimont 提交于
-
由 Romain Vimont 提交于
-
由 Romain Vimont 提交于
-
由 Romain Vimont 提交于
Do not pass any data to the event watcher, it is unused.
-
由 Romain Vimont 提交于
In "adb forward" mode, close the server socket as soon as the client is connected. Even if unlikely to be useful, it allows to run several instances of scrcpy also in "adb forward" mode.
-
由 Romain Vimont 提交于
On Windows and MacOS, resizing blocks the event loop, so resizing events are not triggered: - <https://bugzilla.libsdl.org/show_bug.cgi?id=2077> - <https://stackoverflow.com/a/40693139/1987178> As a workaround, register an event watcher to render the screen from another thread. Since the whole event loop is blocked during resizing, the screen content is not refreshed (on Windows and MacOS) until resizing ends.
-
- 13 3月, 2018 2 次提交
-
-
由 Romain Vimont 提交于
In MSYS2 on Windows, the output is buffered by default. Disable buffering to print output immediately. Note that in cmd.exe, it still prints nothing.
-
由 Romain Vimont 提交于
Resize the window to fit the device screen on click on black borders (same as Ctrl+x). Suggested-by: NGuillaume Roche <groche@genymobile.com>
-
- 12 3月, 2018 5 次提交
-
-
由 Romain Vimont 提交于
-
由 Romain Vimont 提交于
"adb reverse" currently does not work over tcpip (i.e. on a device connected by "adb connect"): <https://issuetracker.google.com/issues/37066218> To work around the problem, if the call to "adb reverse" fails, then fallback to "adb forward", and reverse the client/server roles. Keep the "adb reverse" mode as the default because it does not involve connection retries: when using "adb forward", the client must try to connect successively until the server listens. Due to the tunnel, every connect() will succeed, so the client must attempt to read() to detect a connection failure. For this purpose, when using the "adb forward" mode, the server initially writes a dummy byte, read by the client. Fixes <https://github.com/Genymobile/scrcpy/issues/5>.
-
由 Romain Vimont 提交于
The serial is needed for many server actions, but this is an implementation detail, so the caller should not have to provide it on every call. Instead, store the serial in the server instance on server_start(). This paves the way to implement the "adb forward" fallback properly.
-
由 Romain Vimont 提交于
Because why not. See <https://wiki.libsdl.org/SDL_HINT_RENDER_SCALE_QUALITY>.
-
由 Romain Vimont 提交于
The SDL mouse wheel event seems inconsistent between horizontal and vertical scrolling. > Movements to the left generate negative x values and to the right > generate positive x values. Movements down (scroll backward) generate > negative y values and up (scroll forward) generate positive y values. <https://wiki.libsdl.org/SDL_MouseWheelEvent#Remarks> Reverse the horizontal. Fixes <https://github.com/Genymobile/scrcpy/issues/49>.
-