diff options
author | Søren Sandmann Pedersen <ssp@l3000.localdomain> | 2010-12-13 07:00:34 -0500 |
---|---|---|
committer | Søren Sandmann Pedersen <ssp@l3000.localdomain> | 2010-12-20 10:48:52 -0500 |
commit | 6b238041b3f253ae2f92107cc0f0a358d57cb334 (patch) | |
tree | 157de2679980f4b86a8e3e8f6d1bf6b1120f21a2 | |
parent | d113241183e5ee21dbcca1d9b1b0504f33db0fd8 (diff) |
FIXME
-rw-r--r-- | dda.c | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -137,6 +137,14 @@ edge_init (edge_t *edge, fixed_t x0, fixed_t y0, fixed_t x1, fixed_t y1) edge->delta_e_small_y = SMALL_STEP_Y * dx; } +/* FIXME: + * + * When updating the xi, we are stepping one sample at a time, but we + * can do better because we know how the minimum damage that is done on every Y + * step. This means we know we have to undo at least that much damage, so + * we can step much more than one sample if the edge is close to horizontal. + */ + static void edge_step (edge_t *edge, test_data_t *testdata, int i, int *yi) { |