209
209
if( ix >= width-2 ) ix = width-2;
210
210
if( iy >= height-2 ) iy = height-2;
212
Offset offset = { ix-x, iy-y, fx, fy };
212
Offset offset = { (short)(ix-x), (short)(iy-y), (unsigned char)fx, (unsigned char)fy };
213
213
grid->offset[y*width+x] = offset;