Enum fix for the UI

This commit is contained in:
Omer
2019-12-08 22:09:17 +02:00
parent b92a06895c
commit 1f2eac5911

View File

@@ -46,11 +46,10 @@
streamResolutionList: {
get() {
let cam_res = this.$store.state.resolutionList[this.value.videoModeIndex];
let tmp_list = [];
let x = 1;
for (let i = 0; i < 4; i++) {
let tmp_list = [];
tmp_list.push(`${cam_res['width']} X ${cam_res['height']}`);
for (let x = 2; x <= 6; x+=2) {
tmp_list.push(`${cam_res['width'] / x} X ${cam_res['height'] / x}`);
x *= 2;
}
return tmp_list;
}