Fix: Anti-aliasing for font sizes >8
Tony Lambregts
tony_lambregts at telusplanet.net
Mon Sep 30 16:16:48 CDT 2002
Dag Wieers wrote:
>Hi,
>
>I noticed recently that Wine was able to do anti-aliasing for font sizes >16
>although my Gnome 2 looked nice with anti-aliasing of <16. I started to
>look why Wine apps were only anti-aliased for >16, and I came across this:
>
>--- dlls/x11drv/xrender.c.orig 2002-09-29 12:56:27.000000000 +0200
>+++ dlls/x11drv/xrender.c 2002-09-29 12:56:56.000000000 +0200
>@@ -322,7 +322,7 @@
> assert(entry->nrealized == 0);
>
>
>- if(antialias && abs(plfsz->lf.lfHeight * plfsz->xform.eM22) > 16) {
>+ if(antialias && abs(plfsz->lf.lfHeight * plfsz->xform.eM22) > 8) {
> pf.depth = 8;
> pf.direct.alphaMask = 0xff;
> } else {
>
>When I changed this, my Notes was much nicer to work with. I presume there
>is a reason why anti-aliasing was off, but I would reconsider that
>decision. You can look for yourself on these 2 screenshots:
>
> http://dag.wieers.com/Screenshot-2.png
> http://dag.wieers.com/Screenshot-3.png
>
>Especially look at the widgets.
>
>
>
Looks like that cleans it up quite a bit. Why not send it to wine
patches? wine-patches at winehq.com
Tony Lambregts
More information about the wine-devel
mailing list