mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-05-05 11:08:12 +02:00
[directfb] Force NEAREST.
The current version of DirectFB does not support any filters, so set NEAREST on the source patterns so that we can fully optimize the pattern inside core.
This commit is contained in:
parent
f1669d31c0
commit
2743e84171
1 changed files with 5 additions and 0 deletions
|
|
@ -750,6 +750,11 @@ _directfb_prepare_composite (cairo_directfb_surface_t *dst,
|
|||
color.a = color.r = color.g = color.b = 0xff;
|
||||
}
|
||||
|
||||
/* XXX DirectFB currently does not support filtering, so force NEAREST
|
||||
* in order to hit optimisations inside core.
|
||||
*/
|
||||
src_pattern->filter = CAIRO_FILTER_NEAREST;
|
||||
|
||||
status = _cairo_pattern_acquire_surface (src_pattern, &dst->base,
|
||||
*src_x, *src_y, width, height,
|
||||
(cairo_surface_t **) &src,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue