mirror of https://github.com/Genymobile/scrcpy
Enable linear filtering in OTG mode
This improves the icon quality with non-standard window size. PR #3219 <https://github.com/Genymobile/scrcpy/pull/3219>
This commit is contained in:
parent
436b368f9d
commit
854a56e588
|
@ -55,6 +55,10 @@ scrcpy_otg(struct scrcpy_options *options) {
|
|||
|
||||
const char *serial = options->serial;
|
||||
|
||||
if (!SDL_SetHint(SDL_HINT_RENDER_SCALE_QUALITY, "1")) {
|
||||
LOGW("Could not enable linear filtering");
|
||||
}
|
||||
|
||||
// Minimal SDL initialization
|
||||
if (SDL_Init(SDL_INIT_EVENTS)) {
|
||||
LOGE("Could not initialize SDL: %s", SDL_GetError());
|
||||
|
|
Loading…
Reference in New Issue