- 10 12月, 2019 12 次提交
-
-
由 Romain Vimont 提交于
-
由 Romain Vimont 提交于
A proper solution could be to use "long long" instead (guaranteed to be at least 64 bits), but it adds its own problems (e.g. "%lld" is not supported as a printf format on all platforms). In practice, we don't need such high values, so keep it simple. Fixes #995 <https://github.com/Genymobile/scrcpy/issues/995>
-
由 Romain Vimont 提交于
-
由 Romain Vimont 提交于
-
由 Romain Vimont 提交于
Assertions would not be executed. And as a side effect, it causes "unused variable" warnings.
-
由 Romain Vimont 提交于
Each test defines its own main() function. If this flag is not set, then SDL redefines it to SDL_main(), causing compilation failures.
-
由 Romain Vimont 提交于
-
由 Romain Vimont 提交于
-
由 Romain Vimont 提交于
-
由 Romain Vimont 提交于
The log priority must be configured before parsing command-line arguments, in order to get logs as expected.
-
由 Romain Vimont 提交于
String parsing functions should not be able to modify their input.
-
由 Romain Vimont 提交于
-
- 09 12月, 2019 3 次提交
-
-
由 Romain Vimont 提交于
-
由 Romain Vimont 提交于
-
由 Romain Vimont 提交于
Add util functions for integer parsing (with tests), and factorize integer argument parsing to avoid code duplication.
-
- 06 12月, 2019 3 次提交
-
-
由 Romain Vimont 提交于
If SCRCPY_SERVER_PATH points to a directory, then a directory will be pushed to /data/local/tmp/scrcpy-server.jar. When executing it, app_process will just abort and leave the directory on the device, causing scrcpy to always fail. To avoid the problem, check that the server is a regular file before pushing it. Closes #956 <https://github.com/Genymobile/scrcpy/issues/956>
-
由 Romain Vimont 提交于
Including SDL2/SDL.h redefines main to SDL_main by default.
-
由 Romain Vimont 提交于
-
- 05 12月, 2019 7 次提交
-
-
由 Romain Vimont 提交于
On Ctrl+r, disable auto-rotation (if enabled), set the screen rotation and re-enable auto-rotation (if it was enabled). Closes #11 <https://github.com/Genymobile/scrcpy/issues/11>
-
由 Romain Vimont 提交于
Internally, a failure to invoke a method via reflection was partially managed using exceptions, partially using a null return value. Handle all errors at the same place, by not catching NoSuchMethodException too early.
-
由 Romain Vimont 提交于
Use the legacy methods when the new ones do not exist.
-
由 Romain Vimont 提交于
Add some tests <https://github.com/Genymobile/scrcpy/pull/967>
-
由 Yu-Chen Lin 提交于
Signed-off-by: NYu-Chen Lin <npes87184@gmail.com>
-
由 Yu-Chen Lin 提交于
Signed-off-by: NYu-Chen Lin <npes87184@gmail.com>
-
由 Yu-Chen Lin 提交于
Signed-off-by: NYu-Chen Lin <npes87184@gmail.com>
-
- 04 12月, 2019 1 次提交
-
-
由 Romain Vimont 提交于
> Movements down (scroll backward) generate negative y values and up > (scroll forward) generate positive y values. > If direction is SDL_MOUSEWHEEL_FLIPPED the values in x and y will be > opposite. Multiply by -1 to change them back. <https://wiki.libsdl.org/SDL_MouseWheelEvent#Remarks> The x and y values already take the scrolling configuration into account. Reversing the values when the direction is flipped cancels the scrolling configuration. Therefore, just ignore the direction field. Fixes <https://github.com/Genymobile/scrcpy/issues/966>
-
- 03 12月, 2019 2 次提交
-
-
由 Seb Leo 提交于
PR <https://github.com/Genymobile/scrcpy/pull/965> Signed-off-by: NRomain Vimont <rom@rom1v.com>
-
由 Romain Vimont 提交于
Suggested-by: jurkov Closes <https://github.com/Genymobile/scrcpy/issues/978>
-
- 30 11月, 2019 1 次提交
-
-
由 Romain Vimont 提交于
When the hardware encoder is not able to encode at the given definition, it fails with an error 0xfffffc0e. It is documented in the FAQ: <https://github.com/Genymobile/scrcpy/blob/master/FAQ.md#i-get-an-error-could-not-open-video-stream> But it is better to directly suggest the workaround in the console.
-
- 29 11月, 2019 1 次提交
-
-
由 Romain Vimont 提交于
Inject mouse events using id -1 (virtual device) instead of 0 which does not exist (and causes the InputDevice to be null). Fixes <https://github.com/Genymobile/scrcpy/issues/962>
-
- 28 11月, 2019 6 次提交
-
-
由 Romain Vimont 提交于
Mutex functions may only fail due to a programming error. Use assertions in debug builds, and ignore the value in release builds.
-
由 Romain Vimont 提交于
No mutex is used in decoder.c and stream.c.
-
由 Romain Vimont 提交于
SDL_assert() open a dialog on assertion failure. There is no reason not to use assert() directly.
-
由 Romain Vimont 提交于
Use the "standard" NDEBUG definition, which is used by assert().
-
由 Romain Vimont 提交于
It is always equal to argv[0] (or not used on Windows).
-
由 Romain Vimont 提交于
fix warnings reported with -Dwarning_level=2 on Windows.
-
- 27 11月, 2019 2 次提交
-
-
由 Romain Vimont 提交于
Utilities have been moved to util/, but includes had not been updated in Windows-specific files. Ref: dfd0707a
-
由 yangfl 提交于
-
- 26 11月, 2019 2 次提交
-
-
由 Romain Vimont 提交于
-
由 Romain Vimont 提交于
Fix warnings reported with -Dwarning_level=2.
-