Fix: Anti-aliasing for font sizes >8

Dag Wieers dag at wieers.com
Sun Sep 29 08:19:45 CDT 2002


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.

Thanks for your feedback, (please Cc: because I'm not subscribed)
--   dag wieers,  dag at wieers.com,  http://dag.wieers.com/   --
«Any errors in spelling, tact or fact are transmission errors»




More information about the wine-devel mailing list