Browse Source

UI: Remove min and max macro workaround

Norihiro Kamae 1 year ago
parent
commit
58a8d79be1
1 changed files with 4 additions and 4 deletions
  1. 4 4
      UI/window-basic-main.cpp

+ 4 - 4
UI/window-basic-main.cpp

@@ -9068,10 +9068,10 @@ void OBSBasic::CenterSelectedSceneItems(const CenterType &centerType)
 
 		GetItemBox(item, tl, br);
 
-		left = (std::min)(tl.x, left);
-		top = (std::min)(tl.y, top);
-		right = (std::max)(br.x, right);
-		bottom = (std::max)(br.y, bottom);
+		left = std::min(tl.x, left);
+		top = std::min(tl.y, top);
+		right = std::max(br.x, right);
+		bottom = std::max(br.y, bottom);
 	}
 
 	center.x = (right + left) / 2.0f;