[compiz] Zoom plugin filter linear?
davidr at novell.com
Wed Feb 14 04:26:07 PST 2007
On Wed, 2007-02-14 at 08:54 +0100, Bellegarde Cedric wrote:
> David, when you add my zoom plugin patch factor, you add this:
> + if (zs->zoomFactor == 2.0f &&
> + (zs->opt[ZOOM_SCREEN_OPTION_FILTER_LINEAR].value.b ||
> + zs->zVelocity != 0.0f))
> s->filter[SCREEN_TRANS_FILTER] = COMP_TEXTURE_FILTER_GOOD;
> s->filter[SCREEN_TRANS_FILTER] = COMP_TEXTURE_FILTER_FAST;
> It make filter linear disabled when zoom factor != 2 :(
> Any reason? I remove this and it seems to work well here.
I just thought it looked bad with nearest filtering when scale factor is
not a multiple of two. btw, we should be looking at the CompTransform
matrix to determine which filter to use instead of the zoomFactor but we
can fix that later when ScreenAttribute struct and transform fields in
WindowAttribute struct have been killed.
More information about the compiz