code cleanup: use rect size macros

This commit is contained in:
2012-08-21 20:34:05 +00:00
parent abd031bb4e
commit c92ab5c3ef
32 changed files with 142 additions and 136 deletions

View File

@@ -1733,8 +1733,8 @@ void ui_dropshadow(rctf *rct, float radius, float aspect, float alpha, int UNUSE
glEnable(GL_BLEND);
if (radius > (rct->ymax - rct->ymin - 10.0f) / 2.0f)
rad = (rct->ymax - rct->ymin - 10.0f) / 2.0f;
if (radius > (BLI_RCT_SIZE_Y(rct) - 10.0f) / 2.0f)
rad = (BLI_RCT_SIZE_Y(rct) - 10.0f) / 2.0f;
else
rad = radius;