Changeset 460
- Timestamp:
- Jan 13, 2005, 4:27:37 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pwntcha/trunk/src/xanga.c
r453 r460 131 131 int x, y, i = 0, f; 132 132 int r, g, b; 133 int xmin, xmax, ymin, ymax, startx = 10,cur = 0;133 int xmin, xmax, ymin, ymax, cur = 0; 134 134 int bestdist, bestfont, bestx, besty, bestch; 135 135 … … 171 171 sqr = sqrt(xmax - xmin); 172 172 for(y = -15; y < 15; y++) 173 //for(x = startx; x < startx + 15; x++)174 173 for(x = 22 - (xmax - xmin) / 2 + 25 * cur; x < 28 - (xmax - xmin) / 2 + 25 * cur; x++) 175 174 { … … 199 198 } 200 199 } 201 //fprintf(stderr, "%i (%i,%i)\n", localmin, localx - startx, localy);202 200 if(localmin < bestdist) 203 201 { … … 226 224 } 227 225 228 startx = bestx + xmax - xmin;229 226 result[cur++] = fonts[bestfont]->glyphs[bestch].c; 230 227 }
Note: See TracChangeset
for help on using the changeset viewer.