Project

General

Profile

Revision 293

generalized menu

View differences:

font.c
168 168
        if(alp_new_buf == NULL) return ALLOC_ERROR;
169 169

  
170 170
        for(size_t newy = 0; newy < newH; ++newy){
171
            size_t y = newy/factor;
171
            size_t y = newy/factor+0.5;
172 172
            for(size_t newx = 0; newx < newW; ++newx){
173
                size_t x = newx/factor;
173
                size_t x = newx/factor+0.5;
174 174
                *(alp_new_buf+newx+newy*newW) = *(alp_buf+x+y*W);
175 175
            }
176 176
        }
177 177
        free(alp_buf);
178

  
179

  
180 178
    }
181 179
    // Get initial value of x
182 180
    int16_t initx;{

Also available in: Unified diff