mirror of
https://github.com/PhotonVision/photonvision
synced 2026-06-24 01:31:44 +00:00
Enum fix for the UI
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user