scrcpy/app
Romain Vimont f4a872bef4 Fix aspect ratio accuracy
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 1b4fd67286
Refs #6761 <https://github.com/Genymobile/scrcpy/pull/6761>
PR #6774 <https://github.com/Genymobile/scrcpy/pull/6774>
2026-04-17 18:30:25 +02:00
..
data Disable retry capture at lower resolution 2026-04-14 22:50:28 +02:00
deps Upgrade SDL build script for SDL3 2026-01-08 20:40:51 +01:00
src Fix aspect ratio accuracy 2026-04-17 18:30:25 +02:00
tests Rename "hole" to "uninitialized" in vector APIs 2026-03-17 20:46:40 +01:00
meson.build Display disconnected icon before closing 2026-03-17 18:40:35 +01:00
scrcpy-windows.manifest Set DPI awareness for Windows 2021-12-20 19:13:02 +01:00
scrcpy-windows.rc Bump version to 3.3.4 2025-12-17 19:57:50 +01:00
scrcpy.1 Disable retry capture at lower resolution 2026-04-14 22:50:28 +02:00