>> Brian Paul <[EMAIL PROTECTED]> writes: > to a simple integer divide.
That's the point. You are comparing it with a truncated result. I'm comparing it with x/255 computed in floating point and rounded up. > int d0 = i / 255; change that to (int)((float)i / 255. + 0.5) -- Marcelo _______________________________________________ Dri-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/dri-devel