1 parent a32a318 commit c63e565Copy full SHA for c63e565
1 file changed
shared-module/vectorio/VectorShape.c
@@ -142,7 +142,6 @@ static void screen_to_shape_coordinates(vectorio_vector_shape_t *self, uint16_t
142
*out_shape_x *= -1;
143
*out_shape_x -= 1;
144
}
145
- VECTORIO_SHAPE_PIXEL_DEBUG(" b(%3d, %3d)", *out_shape_x, *out_shape_y);
146
} else {
147
*out_shape_x = x - self->absolute_transform->x - self->absolute_transform->dx * self->x;
148
*out_shape_y = y - self->absolute_transform->y - self->absolute_transform->dy * self->y;
@@ -156,8 +155,6 @@ static void screen_to_shape_coordinates(vectorio_vector_shape_t *self, uint16_t
156
155
*out_shape_y *= -1;
157
*out_shape_y -= 1;
158
159
160
-
161
// It's mirrored via dx. Maybe we need to add support for also separately mirroring?
162
// if (self->absolute_transform->mirror_x) {
163
// pixel_to_get_x = (shape_area.x2 - shape_area.x1) - (pixel_to_get_x - shape_area.x1) + shape_area.x1 - 1;
@@ -166,6 +163,7 @@ static void screen_to_shape_coordinates(vectorio_vector_shape_t *self, uint16_t
166
// pixel_to_get_y = (shape_area.y2 - shape_area.y1) - (pixel_to_get_y - shape_area.y1) + +shape_area.y1 - 1;
167
164
// }
168
165
+ VECTORIO_SHAPE_PIXEL_DEBUG(" b(%3d, %3d)", *out_shape_x, *out_shape_y);
169
170
171
static void check_bounds_and_set_x(vectorio_vector_shape_t *self, mp_int_t x) {
0 commit comments