Changeset 460 for pwntcha


Ignore:
Timestamp:
Jan 13, 2005, 4:27:37 PM (15 years ago)
Author:
Sam Hocevar
Message:
  • code cleanup (no changes)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • pwntcha/trunk/src/xanga.c

    r453 r460  
    131131    int x, y, i = 0, f;
    132132    int r, g, b;
    133     int xmin, xmax, ymin, ymax, startx = 10, cur = 0;
     133    int xmin, xmax, ymin, ymax, cur = 0;
    134134    int bestdist, bestfont, bestx, besty, bestch;
    135135
     
    171171sqr = sqrt(xmax - xmin);
    172172            for(y = -15; y < 15; y++)
    173                 //for(x = startx; x < startx + 15; x++)
    174173                for(x = 22 - (xmax - xmin) / 2 + 25 * cur; x < 28 - (xmax - xmin) / 2 + 25 * cur; x++)
    175174                {
     
    199198                    }
    200199                }
    201             //fprintf(stderr, "%i (%i,%i)\n", localmin, localx - startx, localy);
    202200            if(localmin < bestdist)
    203201            {
     
    226224            }
    227225
    228         startx = bestx + xmax - xmin;
    229226        result[cur++] = fonts[bestfont]->glyphs[bestch].c;
    230227    }
Note: See TracChangeset for help on using the changeset viewer.