Skip to content

Commit

Permalink
Bugfix for calculating correct minimal scale and screen ratio when re…
Browse files Browse the repository at this point in the history
…solution has changed to a smaller one.
  • Loading branch information
iiordanov committed Aug 22, 2019
1 parent 36f9ca8 commit 9bdf029
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion bVNC/AndroidManifest.xml.aRDP
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
package="com.iiordanov.aRDP" android:installLocation="auto"
android:versionCode="114072" android:versionName="v4.0.7">
android:versionCode="114073" android:versionName="v4.0.7">

<uses-permission tools:node="removeAll"/>
<uses-permission android:name="android.permission.INTERNET"> </uses-permission>
Expand Down
2 changes: 1 addition & 1 deletion bVNC/AndroidManifest.xml.aSPICE
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
package="com.iiordanov.aSPICE" android:installLocation="auto"
android:versionCode="114072" android:versionName="v4.0.7">
android:versionCode="114073" android:versionName="v4.0.7">

<uses-permission tools:node="removeAll"/>
<uses-permission android:name="android.permission.INTERNET"> </uses-permission>
Expand Down
2 changes: 1 addition & 1 deletion bVNC/AndroidManifest.xml.bVNC
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
package="com.iiordanov.bVNC" android:installLocation="auto"
android:versionCode="114072" android:versionName="v4.0.7">
android:versionCode="114073" android:versionName="v4.0.7">

<uses-permission tools:node="removeAll"/>
<uses-permission android:name="android.permission.INTERNET"> </uses-permission>
Expand Down
2 changes: 1 addition & 1 deletion bVNC/AndroidManifest.xml.freeaRDP
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
package="com.iiordanov.freeaRDP" android:installLocation="auto"
android:versionCode="114072" android:versionName="v4.0.7">
android:versionCode="114073" android:versionName="v4.0.7">

<uses-permission tools:node="removeAll"/>
<uses-permission android:name="android.permission.INTERNET"> </uses-permission>
Expand Down
2 changes: 1 addition & 1 deletion bVNC/AndroidManifest.xml.freeaSPICE
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
package="com.iiordanov.freeaSPICE" android:installLocation="auto"
android:versionCode="114072" android:versionName="v4.0.7">
android:versionCode="114073" android:versionName="v4.0.7">

<uses-permission tools:node="removeAll"/>
<uses-permission android:name="android.permission.INTERNET"> </uses-permission>
Expand Down
2 changes: 1 addition & 1 deletion bVNC/AndroidManifest.xml.freebVNC
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
package="com.iiordanov.freebVNC" android:installLocation="auto"
android:versionCode="114072" android:versionName="v4.0.7">
android:versionCode="114073" android:versionName="v4.0.7">

<uses-permission tools:node="removeAll"/>
<uses-permission android:name="android.permission.INTERNET"> </uses-permission>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,11 +100,11 @@ boolean isNotInitSoftCursor() {
* the bitmap would be smaller than the screen
*/
float getMinimumScale() {
return Math.min((float)vncCanvas.getWidth()/bitmapwidth, (float)vncCanvas.getHeight()/bitmapheight);
return Math.min((float)vncCanvas.getWidth()/framebufferwidth, (float)vncCanvas.getHeight()/framebufferheight);
}

boolean widthRatioLessThanHeightRatio() {
return (float)vncCanvas.getWidth()/bitmapwidth < vncCanvas.getHeight()/bitmapheight;
return (float)vncCanvas.getWidth()/framebufferwidth < vncCanvas.getHeight()/framebufferheight;
}

/**
Expand Down

0 comments on commit 9bdf029

Please sign in to comment.