|
|
@ -62,7 +62,7 @@ rdp_find_max(float *xs, float *ys, unsigned char *pressures, float zoom, int coo |
|
|
|
float dist_ab = __builtin_sqrtf(dx * dx + dy * dy); |
|
|
|
float dist_ab = __builtin_sqrtf(dx * dx + dy * dy); |
|
|
|
float dir_nx = dy / dist_ab * 255.0f; |
|
|
|
float dir_nx = dy / dist_ab * 255.0f; |
|
|
|
float dir_ny = -dx / dist_ab * 255.0f; |
|
|
|
float dir_ny = -dx / dist_ab * 255.0f; |
|
|
|
#if 1 |
|
|
|
#if 0 |
|
|
|
for (int i = segment_start + 1; i < segment_end; ++i) { |
|
|
|
for (int i = segment_start + 1; i < segment_end; ++i) { |
|
|
|
float px = xs[coords_from + i]; |
|
|
|
float px = xs[coords_from + i]; |
|
|
|
float py = ys[coords_from + i]; |
|
|
|
float py = ys[coords_from + i]; |
|
|
|