Blender Git Loki
Git Commits -> Revision 7176cbf
Revision 7176cbf by Joshua Leung (master) September 1, 2013, 05:36 (GMT) |
Mingw Compiling Fix - Conversion from int to unsigned char... Apparently mingw/gcc is too stupid to recognise that the values in alphatest will only be used if they're within the range of unsigned char (i.e. 0 <= x < 255) when this is done using a ternary operator. Then again, it's quite hard for humans to immediately parse what is going on here either! Converting this clever code back to a more obvious form that mere mortals (and compilers it seems) can handle with ease ;) |
Commit Details:
Full Hash: 7176cbf466a49d78d3777595b2c6435ffa168df1
SVN Revision: 59700
Parent Commit: 33c6884
Lines Changed: +16, -4
1 Modified Path:
/source/blender/blenfont/intern/blf_font.c (+16, -4) (Diff)