Document render fit

This commit is contained in:
Romain Vimont 2026-04-18 11:34:49 +02:00
parent 6a20c68d79
commit 32d6a19aca

View file

@ -69,3 +69,25 @@ computer. To disable it:
```bash
scrcpy --disable-screensaver
```
## Render fit
By default, the video stream is rendered in [letterbox] mode: the content fits
the window as best as possible while preserving the aspect ratio.
For [flex displays], the display is continuously resized to match the window, so
render fit is _disabled_: the content is rendered at the top-left corner,
without scaling.
It is also possible to _stretch_ the content to fit the window without
preserving aspect ratio (`--render-fit=stretched`).
```bash
scrcpy --render-fit=letterbox # default
scrcpy --render-fit=disabled # default for flex displays
scrcpy --render-fit=stretched
```
[letterbox]: https://en.wikipedia.org/wiki/Letterboxing_(filming)
[flex displays]: virtual_display.md#flex-display