mirror of https://github.com/google/pebble
spelling: straight
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
This commit is contained in:
parent
56f907ed6b
commit
c2cf2fd848
|
@ -517,7 +517,7 @@ void prv_draw_stroked_line_precise(GContext* ctx, GPointPrecise p0, GPointPrecis
|
||||||
Fixed_S16_3 left_margin = {.raw_value = INT16_MAX};
|
Fixed_S16_3 left_margin = {.raw_value = INT16_MAX};
|
||||||
Fixed_S16_3 right_margin = {.raw_value = INT16_MIN};
|
Fixed_S16_3 right_margin = {.raw_value = INT16_MIN};
|
||||||
|
|
||||||
// Find edges of the line's straigth part
|
// Find edges of the line's straight part
|
||||||
if (y >= far_top.y.integer && y <= far_bottom.y.integer) {
|
if (y >= far_top.y.integer && y <= far_bottom.y.integer) {
|
||||||
// TODO: possible performance optimization: PBL-14744
|
// TODO: possible performance optimization: PBL-14744
|
||||||
// TODO: ^^ also possible avoid of following logic to avoid division by zero
|
// TODO: ^^ also possible avoid of following logic to avoid division by zero
|
||||||
|
@ -645,7 +645,7 @@ void prv_draw_stroked_line_precise(GContext* ctx, GPointPrecise p0, GPointPrecis
|
||||||
Fixed_S16_3 top_margin = {.raw_value = INT16_MAX};
|
Fixed_S16_3 top_margin = {.raw_value = INT16_MAX};
|
||||||
Fixed_S16_3 bottom_margin = {.raw_value = INT16_MIN};
|
Fixed_S16_3 bottom_margin = {.raw_value = INT16_MIN};
|
||||||
|
|
||||||
// Find edges of the line's straigth part
|
// Find edges of the line's straight part
|
||||||
if (x >= far_left.x.integer && x <= far_right.x.integer) {
|
if (x >= far_left.x.integer && x <= far_right.x.integer) {
|
||||||
// Main part of the stroked line
|
// Main part of the stroked line
|
||||||
if (tm_p1.x.raw_value != tm_p0.x.raw_value) {
|
if (tm_p1.x.raw_value != tm_p0.x.raw_value) {
|
||||||
|
|
Loading…
Reference in New Issue