bugfix [#20480] crash/lock-up for certain aspect ratios

This commit is contained in:
2010-02-16 15:59:36 +00:00
parent 2061f91741
commit bc9b873f60
3 changed files with 9 additions and 2 deletions

View File

@@ -48,6 +48,12 @@ int BLI_rcti_is_empty(rcti * rect)
(rect->ymax<=rect->ymin));
}
int BLI_rctf_is_empty(rctf * rect)
{
return ((rect->xmax<=rect->xmin) ||
(rect->ymax<=rect->ymin));
}
int BLI_in_rcti(rcti * rect, int x, int y)
{