Bläddra i källkod

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 år sedan
förälder
incheckning
e7cfaa0def
1 ändrade filer med 1 tillägg och 4 borttagningar
  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);
 
-	int n; // Number of scenes per row
+	int n; // Twice of scale factor of preview and program scenes
 	switch (multiviewLayout) {
-	case MultiviewLayout::HORIZONTAL_TOP_18_SCENES:
-		n = 6;
-		break;
 	case MultiviewLayout::HORIZONTAL_TOP_24_SCENES:
 		n = 6;
 		break;