mirror of
https://github.com/google/pebble.git
synced 2025-04-30 07:21:39 -04:00
spelling: twelfth
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
This commit is contained in:
parent
762142cebc
commit
e38db99b9d
1 changed files with 6 additions and 6 deletions
|
@ -543,7 +543,7 @@ void test_graphics_fill_circle_${BIT_DEPTH_NAME}__radial(void){
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
uint16_t outer_radius = 30;
|
uint16_t outer_radius = 30;
|
||||||
int32_t twelveth_of_angle = TRIG_MAX_ANGLE / 12;
|
int32_t twelfth_of_angle = TRIG_MAX_ANGLE / 12;
|
||||||
int32_t quarter_of_angle = TRIG_MAX_ANGLE / 4;
|
int32_t quarter_of_angle = TRIG_MAX_ANGLE / 4;
|
||||||
GPoint center = GPoint(72, 84);
|
GPoint center = GPoint(72, 84);
|
||||||
|
|
||||||
|
@ -564,9 +564,9 @@ void test_graphics_fill_circle_${BIT_DEPTH_NAME}__radial(void){
|
||||||
|
|
||||||
graphics_fill_radial_internal(&ctx, pt, test_radiuses[i].radius, outer_radius,
|
graphics_fill_radial_internal(&ctx, pt, test_radiuses[i].radius, outer_radius,
|
||||||
test_quadrants[j].angle_start + offset_angle -
|
test_quadrants[j].angle_start + offset_angle -
|
||||||
twelveth_of_angle,
|
twelfth_of_angle,
|
||||||
test_quadrants[j].angle_end + offset_angle +
|
test_quadrants[j].angle_end + offset_angle +
|
||||||
twelveth_of_angle);
|
twelfth_of_angle);
|
||||||
|
|
||||||
offset_angle += quarter_of_angle;
|
offset_angle += quarter_of_angle;
|
||||||
}
|
}
|
||||||
|
@ -719,7 +719,7 @@ void prv_draw_radial_in_rect_debugged(GContext *ctx, int16_t width, int16_t heig
|
||||||
int32_t angle_start, int32_t angle_end){
|
int32_t angle_start, int32_t angle_end){
|
||||||
|
|
||||||
int offset_angle = 0;
|
int offset_angle = 0;
|
||||||
int32_t twelveth_of_angle = TRIG_MAX_ANGLE / 12;
|
int32_t twelfth_of_angle = TRIG_MAX_ANGLE / 12;
|
||||||
GPoint center = GPoint(72, 84);
|
GPoint center = GPoint(72, 84);
|
||||||
|
|
||||||
for (int i=0; i<4; i++) {
|
for (int i=0; i<4; i++) {
|
||||||
|
@ -739,8 +739,8 @@ void prv_draw_radial_in_rect_debugged(GContext *ctx, int16_t width, int16_t heig
|
||||||
graphics_context_set_stroke_color(ctx, GColorBlack);
|
graphics_context_set_stroke_color(ctx, GColorBlack);
|
||||||
|
|
||||||
graphics_fill_radial(ctx, rect, scale_mode, inset,
|
graphics_fill_radial(ctx, rect, scale_mode, inset,
|
||||||
angle_start + offset_angle - twelveth_of_angle,
|
angle_start + offset_angle - twelfth_of_angle,
|
||||||
angle_end + offset_angle + twelveth_of_angle);
|
angle_end + offset_angle + twelfth_of_angle);
|
||||||
|
|
||||||
offset_angle += TRIG_MAX_ANGLE / 4;
|
offset_angle += TRIG_MAX_ANGLE / 4;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue