Skip to content

Commit

Permalink
trying different scaling
Browse files Browse the repository at this point in the history
  • Loading branch information
cagnulein committed Jun 23, 2024
1 parent e74d939 commit 604f33f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ android {
applicationId "org.cagnulein.android_remote"
minSdkVersion 29
targetSdkVersion 32
versionCode 14
versionCode 15
versionName "2.1"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
setProperty("archivesBaseName", "android_remote")
Expand Down
Binary file modified app/src/main/assets/scrcpy-server.jar
Binary file not shown.
4 changes: 2 additions & 2 deletions server/src/main/java/org/cagnulein/android_remote/Device.java
Original file line number Diff line number Diff line change
Expand Up @@ -118,9 +118,9 @@ public Point NewgetPhysicalPoint(Point point) {
int scaledX = point.x * deviceSize.getWidth() / videoSize.getWidth();
int scaledY = point.y * deviceSize.getHeight() / videoSize.getHeight();
if(isPortrait)
return new Point(point.x, point.y);
return new Point(scaledX, scaledY);
else
return new Point(point.x, point.y);
return new Point(scaledX, scaledY);
}

public interface RotationListener {
Expand Down

0 comments on commit 604f33f

Please sign in to comment.