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:
@@ -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))));
|
||||
}
|
||||
|
||||
/** \} */
|
||||
|
||||
Reference in New Issue
Block a user