summaryrefslogtreecommitdiffstats
path: root/TOOLS/subfont-c/subfont.c
diff options
context:
space:
mode:
Diffstat (limited to 'TOOLS/subfont-c/subfont.c')
-rw-r--r--TOOLS/subfont-c/subfont.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/TOOLS/subfont-c/subfont.c b/TOOLS/subfont-c/subfont.c
index 9439c9ae61..7f549533cd 100644
--- a/TOOLS/subfont-c/subfont.c
+++ b/TOOLS/subfont-c/subfont.c
@@ -524,16 +524,20 @@ void outline(
const int y1=(y<r) ? r-y : 0;
const int x2=(x+r>=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<y2; my++){
- unsigned char *dstp= t + (my+y-r)* width + x-r;
- int *mp = m + my *mwidth;
- int mx;
+// unsigned char *dstp= t + (my+y-r)* width + x-r;
+// int *mp = m + my *mwidth;
+ register int mx;
for(mx= x1; mx<x2; mx++){
const int tmp= (src*mp[mx] + 128)>>8;
if(dstp[mx] < tmp) dstp[mx]= tmp;
}
+ dstp+=width;
+ mp+=mwidth;
}
}
}