Fix: typo calculating the maximum width/height of a region

Correct typo, in practice both values are typically much larger
than the input `dist` this wasn't likely to cause real world errors.
This commit is contained in:
Campbell Barton
2025-09-09 16:54:43 +10:00
parent afbdf50b85
commit 0b411ddd08

View File

@@ -2384,7 +2384,7 @@ void ED_view3d_select_id_validate(const ViewContext *vc)
int ED_view3d_backbuf_sample_size_clamp(ARegion *region, const float dist)
{
return int(min_ff(ceilf(dist), float(max_ii(region->winx, region->winx))));
return int(min_ff(ceilf(dist), float(max_ii(region->winx, region->winy))));
}
/** \} */