mirror of
https://github.com/Genymobile/scrcpy
synced 2025-02-19 22:16:51 +00:00
fix?
This commit is contained in:
parent
d73de2da3f
commit
6bd32b8eed
@ -138,8 +138,9 @@ public class ScreenCapture extends SurfaceCapture {
|
|||||||
.createVirtualDisplay("scrcpy", videoSize.getWidth(), videoSize.getHeight(), displayId, surface);
|
.createVirtualDisplay("scrcpy", videoSize.getWidth(), videoSize.getHeight(), displayId, surface);
|
||||||
} else {
|
} else {
|
||||||
// density doesn't matter since this virtual display is only used for mirroring
|
// density doesn't matter since this virtual display is only used for mirroring
|
||||||
virtualDisplay.resize(videoSize.getWidth(), videoSize.getHeight(), 1);
|
|
||||||
virtualDisplay.setSurface(surface);
|
virtualDisplay.setSurface(surface);
|
||||||
|
virtualDisplay.resize(videoSize.getWidth(), videoSize.getHeight(), 1);
|
||||||
|
|
||||||
}
|
}
|
||||||
virtualDisplayId = virtualDisplay.getDisplay().getDisplayId();
|
virtualDisplayId = virtualDisplay.getDisplay().getDisplayId();
|
||||||
Rect contentRect = new Rect(0, 0, videoSize.getWidth(), videoSize.getHeight());
|
Rect contentRect = new Rect(0, 0, videoSize.getWidth(), videoSize.getHeight());
|
||||||
|
Loading…
Reference in New Issue
Block a user