瀏覽代碼

UI: Fix label offset on projector view

Labels on 18-scene multiview were skewed. This commit adjusted the
location of the labels.
Norihiro Kamae 3 年之前
父節點
當前提交
e7cfaa0def
共有 1 個文件被更改,包括 1 次插入4 次删除
  1. 1 4
      UI/window-projector.cpp

+ 1 - 4
UI/window-projector.cpp

@@ -191,11 +191,8 @@ static inline uint32_t labelOffset(obs_source_t *label, uint32_t cx)
 {
 {
 	uint32_t w = obs_source_get_width(label);
 	uint32_t w = obs_source_get_width(label);
 
 
-	int n; // Number of scenes per row
+	int n; // Twice of scale factor of preview and program scenes
 	switch (multiviewLayout) {
 	switch (multiviewLayout) {
-	case MultiviewLayout::HORIZONTAL_TOP_18_SCENES:
-		n = 6;
-		break;
 	case MultiviewLayout::HORIZONTAL_TOP_24_SCENES:
 	case MultiviewLayout::HORIZONTAL_TOP_24_SCENES:
 		n = 6;
 		n = 6;
 		break;
 		break;