fixed the dimensions on texture resoltuion to adhere to 1.1 scale

This commit is contained in:
Shane Harris
2021-05-12 12:56:07 +01:00
parent d278c3bf7d
commit 05943b6cc0
3 changed files with 31 additions and 6 deletions
@@ -170,13 +170,13 @@
<div class="button-section">
<div class="waves-effect waves-light btn set-sso margin-bottom margin-right pink-button"
[ngClass]="{'button-dark-theme':appService.currentTheme === 'dark','button-light-theme':appService.currentTheme === 'light','waves-dark':true,'waves-light':false}"
(click)="setSSO(SSO._1024)">Default - Oculus Go</div>
(click)="setSSO(SSO._Go)">Default - Oculus Go</div>
<div class="waves-effect waves-light btn set-sso margin-bottom margin-right pink-button"
[ngClass]="{'button-dark-theme':appService.currentTheme === 'dark','button-light-theme':appService.currentTheme === 'light','waves-dark':true,'waves-light':false}"
(click)="setSSO(SSO._1280)">Default - Oculus Quest</div>
(click)="setSSO(SSO._Quest1)">Default - Oculus Quest</div>
<div class="waves-effect waves-light btn set-sso margin-bottom margin-right pink-button"
[ngClass]="{'button-dark-theme':appService.currentTheme === 'dark','button-light-theme':appService.currentTheme === 'light','waves-dark':true,'waves-light':false}"
(click)="setSSO(SSO._1440)">Default - Oculus Quest 2</div><br>
(click)="setSSO(SSO._Quest2)">Default - Oculus Quest 2</div><br>
<div class="waves-effect waves-light btn set-sso margin-bottom margin-right pink-button"
[ngClass]="{'button-dark-theme':appService.currentTheme === 'dark','button-light-theme':appService.currentTheme === 'light','waves-dark':true,'waves-light':false}"
(click)="setSSO(SSO._512)">512</div>
+27 -2
View File
@@ -34,6 +34,9 @@ enum SSO {
_2560,
_3072,
_1440,
_Go,
_Quest1,
_Quest2,
}
enum SVR {
_1024,
@@ -173,39 +176,61 @@ export class ToolsComponent implements OnInit {
});
}
setSSO(sso: SSO) {
let value = 0;
let value = 1440;
let hvalue = 1584;
switch (sso) {
case SSO._512:
value = 512;
hvalue = 563;
break;
case SSO._768:
value = 768;
hvalue = 845;
break;
case SSO._1024:
value = 1024;
hvalue = 1127;
break;
case SSO._1280:
value = 1280;
hvalue = 1408;
break;
case SSO._1536:
value = 1536;
hvalue = 1690;
break;
case SSO._2048:
value = 2048;
hvalue = 2253;
break;
case SSO._2560:
value = 2560;
hvalue = 2816;
break;
case SSO._3072:
value = 3072;
hvalue = 3380;
break;
case SSO._1440:
value = 1440;
hvalue = 1584;
break;
case SSO._Go:
value = 1024;
hvalue = 1024;
break;
case SSO._Quest1:
value = 1216;
hvalue = 1344;
break;
case SSO._Quest2:
value = 1440;
hvalue = 1584;
break;
}
this.runAdbCommand('adb shell setprop debug.oculus.textureWidth ' + value)
.then(() => this.runAdbCommand('adb shell setprop debug.oculus.textureHeight ' + value))
.then(() => this.runAdbCommand('adb shell setprop debug.oculus.textureHeight ' + hvalue))
.then(() => this.runAdbCommand('adb shell "settings put system font_scale 0.85 && settings put system font_scale 1.0"'))
.then(() => {
this.statusService.showStatus('Texture Resolution set OK!!');
+1 -1
View File
@@ -1,7 +1,7 @@
{
"name": "SideQuest",
"productName": "SideQuest",
"version": "0.10.20",
"version": "0.10.21",
"description": "A open app store for mobile android based VR devices such as the Levovo Mirage, Oculus Go, Oculus Quest, Vive Focus.",
"repository": "https://github.com/SideQuestVR/SideQuest.git",
"license": "UNLICENCED",