Lines Matching refs:round
34 #define round(x) (int)(x+.5)
295 rgb_color color = { (uint8)round(r * 255), (uint8)round(g * 255),
296 (uint8)round(b * 255), 255 };
401 color.red = (uint8)round(r * 255.0);
402 color.green = (uint8)round(g * 255.0);
403 color.blue = (uint8)round(b * 255.0);
464 updateRequired |= _SetTextControlValue(0, round(h * 60));
465 updateRequired |= _SetTextControlValue(1, round(s * 100));
466 updateRequired |= _SetTextControlValue(2, round(v * 100));
467 updateRequired |= _SetTextControlValue(3, round(r * 255));
468 updateRequired |= _SetTextControlValue(4, round(g * 255));
469 updateRequired |= _SetTextControlValue(5, round(b * 255));
473 (round(r * 255) << 16) | (round(g * 255) << 8) | round(b * 255));