mirror of
https://github.com/Genymobile/scrcpy.git
synced 2026-04-21 01:33:36 +00:00
fix?
This commit is contained in:
parent
d73de2da3f
commit
6bd32b8eed
1 changed files with 2 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue