From 9755c4193af5e3eb5dfcc09f572ecaf2c9be91f3 Mon Sep 17 00:00:00 2001 From: Omer Date: Mon, 9 Dec 2019 22:37:11 +0200 Subject: [PATCH] Round steam divisor resolution --- chameleon-client/src/views/CameraViewes/InputTab.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/chameleon-client/src/views/CameraViewes/InputTab.vue b/chameleon-client/src/views/CameraViewes/InputTab.vue index f27e92095..f844eb445 100644 --- a/chameleon-client/src/views/CameraViewes/InputTab.vue +++ b/chameleon-client/src/views/CameraViewes/InputTab.vue @@ -47,9 +47,9 @@ get() { let cam_res = this.$store.state.resolutionList[this.value.videoModeIndex]; let tmp_list = []; - tmp_list.push(`${cam_res['width']} X ${cam_res['height']}`); + tmp_list.push(`${Math.floor(cam_res['width'])} X ${Math.floor(cam_res['height'])}`); for (let x = 2; x <= 6; x+=2) { - tmp_list.push(`${cam_res['width'] / x} X ${cam_res['height'] / x}`); + tmp_list.push(`${Math.floor(cam_res['width'] / x)} X ${Math.floor(cam_res['height'] / x)}`); } return tmp_list; }