mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-03-10 18:46:10 -04:00
UI: Remove min and max macro workaround
This commit is contained in:
@@ -9068,10 +9068,10 @@ void OBSBasic::CenterSelectedSceneItems(const CenterType ¢erType)
|
||||
|
||||
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;
|
||||
|
||||
Reference in New Issue
Block a user