Patch #8461, by Rob Hausauer

This unifies all usage of FTOCHAR, putting it in utildefines.h
Submitter did several interesting tests for speed, check it here:
http://projects.blender.org/tracker/?func=detail&atid=127&aid=8461&group_id=9
This commit is contained in:
2008-09-20 13:02:06 +00:00
parent 63f10e6b55
commit 2bd6e1ae82
12 changed files with 6 additions and 14 deletions

View File

@@ -80,7 +80,6 @@ void BIF_save_envmap(EnvMap *env, char *str)
}
#define FTOCHAR(val) val<=0.0f?255: 255-(val>=255.0f?255: (char)(val))
/* callback for fileselect to save rendered image, renderresult was checked to exist */
static void save_rendered_image_cb_real(char *name, int confirm)