third_party/cairo/src/cairo-xlib-display.c
void
cairo_xlib_device_debug_set_precision (cairo_device_t *device,
				       int precision)
{
    if (device == NULL || device->status)
	return;
    if (device->backend->type != CAIRO_DEVICE_TYPE_XLIB) {
	cairo_status_t status;

	status = _cairo_device_set_error (device, CAIRO_STATUS_DEVICE_TYPE_MISMATCH);
	(void) status;
	return;
    }

    ((cairo_xlib_display_t *) device)->force_precision = precision;
}
/**
 * cairo_xlib_device_debug_set_precision:
 * @device: a #cairo_device_t for the Xlib backend
 * @precision: the precision to use
 *
 * Render supports two modes of precision when rendering trapezoids. Set
 * the precision to the desired mode.
 *
 * Since: 1.12
 **/
@device: a #cairo_device_t for the Xlib backend
@precision: the precision to use

Render supports two modes of precision when rendering trapezoids. Set
the precision to the desired mode.


@device : a #cairo_device_t for the Xlib backend @precision : the precision to use Render supports two modes of precision when rendering trapezoids . Set the precision to the desired mode .
void
cairo_xlib_device_debug_set_precision (cairo_device_t *device,
				       int precision)
{
    if (device == NULL || device->status)
	return;
    if (device->backend->type != CAIRO_DEVICE_TYPE_XLIB) {
	cairo_status_t status;
	status = _cairo_device_set_error (device, CAIRO_STATUS_DEVICE_TYPE_MISMATCH);
	(void) status;
	return;
    }
    ((cairo_xlib_display_t *) device)->force_precision = precision;
}
void cairo_xlib_device_debug_set_precision ( cairo_device_t * device , int precision ) { if ( device == NULL || device -> status ) return ; if ( device -> backend -> type != CAIRO_DEVICE_TYPE_XLIB ) { cairo_status_t status ; status = _cairo_device_set_error ( device , CAIRO_STATUS_DEVICE_TYPE_MISMATCH ) ; ( void ) status ; return ; } ( ( cairo_xlib_display_t * ) device ) -> force_precision = precision ; }
cairo_xlib_device_debug_set_precision:
 @device: a #cairo_device_t for the Xlib backend
 @precision: the precision to use
cairo_xlib_device_debug_set_precision : @device : a #cairo_device_t for the Xlib backend @precision : the precision to use