mirror of
https://github.com/Genymobile/scrcpy.git
synced 2026-04-21 01:33:36 +00:00
The window aspect ratio was previously enforced by calling
`SDL_SetWindowAspectRatio()` before explicitly setting the window size,
using the width/height ratio of the new size.
However, this size may already be a scaled version of the actual content
size, subject to integer rounding. Using this derived size instead of
the actual content size could result in an inaccurate ratio, causing a
mismatch between the content and window aspect ratios, which may result
in a thin row or column of black pixels.
To avoid this issue, always set the aspect ratio based on the content
size.
Refs
|
||
|---|---|---|
| .. | ||
| data | ||
| deps | ||
| src | ||
| tests | ||
| meson.build | ||
| scrcpy-windows.manifest | ||
| scrcpy-windows.rc | ||
| scrcpy.1 | ||