# HG changeset patch # User arpi # Date 1029513962 0 # Node ID d27dd694e5eaccea9233feb64ee696cb1a20a1ff # Parent 04d2443978aeea5b8c3bdf9c402001444a62c43c more (~40%) speedup :) diff -r 04d2443978ae -r d27dd694e5ea TOOLS/subfont-c/subfont.c --- a/TOOLS/subfont-c/subfont.c Fri Aug 16 09:57:46 2002 +0000 +++ b/TOOLS/subfont-c/subfont.c Fri Aug 16 16:06:02 2002 +0000 @@ -524,16 +524,20 @@ const int y1=(y=width ) ? r+width -x : 2*r+1; const int y2=(y+r>=height) ? r+height-y : 2*r+1; + register unsigned char *dstp= t + (y1+y-r)* width + x-r; + register int *mp = m + y1 *mwidth; int my; for(my= y1; my>8; if(dstp[mx] < tmp) dstp[mx]= tmp; } + dstp+=width; + mp+=mwidth; } } }