Display and control your Android device
Enable linear filtering in OTG mode
Romain Vimont854a56e58893
diff --git a/app/src/usb/scrcpy_otg.c b/app/src/usb/scrcpy_otg.cindex 052facff..ebcfa36f 100644--- a/app/src/usb/scrcpy_otg.c+++ b/app/src/usb/scrcpy_otg.c@@ -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 initializationif (SDL_Init(SDL_INIT_EVENTS)) {LOGE("Could not initialize SDL: %s", SDL_GetError());