mirror of
https://github.com/Genymobile/scrcpy
synced 2025-02-17 04:57:24 +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);
|
||||
} else {
|
||||
// density doesn't matter since this virtual display is only used for mirroring
|
||||
virtualDisplay.resize(videoSize.getWidth(), videoSize.getHeight(), 1);
|
||||
virtualDisplay.setSurface(surface);
|
||||
virtualDisplay.resize(videoSize.getWidth(), videoSize.getHeight(), 1);
|
||||
|
||||
}
|
||||
virtualDisplayId = virtualDisplay.getDisplay().getDisplayId();
|
||||
Rect contentRect = new Rect(0, 0, videoSize.getWidth(), videoSize.getHeight());
|
||||
|
Loading…
Reference in New Issue
Block a user