mirror of
https://github.com/google/pebble
synced 2026-10-16 16:24:12 +02:00
@@ -256,7 +256,7 @@ T_STATIC void graphics_circle_quadrant_draw_1px_aa(GContext* ctx, GPoint p, uint
|
|||||||
* x -
|
* x -
|
||||||
*
|
*
|
||||||
* | original calculated pixels for plotting
|
* | original calculated pixels for plotting
|
||||||
* - mirrored eight of the circle (will mirror more of them if neccessary)
|
* - mirrored eight of the circle (will mirror more of them if necessary)
|
||||||
* o special case pixels
|
* o special case pixels
|
||||||
* x center of the circle
|
* x center of the circle
|
||||||
*/
|
*/
|
||||||
@@ -866,7 +866,7 @@ static void prv_fill_oval_precise(GContext *ctx, GPointPrecise center,
|
|||||||
radius_inner_x.raw_value, radius_inner_y.raw_value,
|
radius_inner_x.raw_value, radius_inner_y.raw_value,
|
||||||
config.end_quadrant.angle);
|
config.end_quadrant.angle);
|
||||||
|
|
||||||
// Swapping top/bottom offset points if neccesary
|
// Swapping top/bottom offset points if necessary
|
||||||
if (start_top.y.raw_value > start_bottom.y.raw_value) {
|
if (start_top.y.raw_value > start_bottom.y.raw_value) {
|
||||||
prv_swap_precise_points(&start_top, &start_bottom);
|
prv_swap_precise_points(&start_top, &start_bottom);
|
||||||
} else if (start_top.y.raw_value == start_bottom.y.raw_value &&
|
} else if (start_top.y.raw_value == start_bottom.y.raw_value &&
|
||||||
|
|||||||
@@ -417,7 +417,7 @@ void prv_draw_stroked_line_precise(GContext* ctx, GPointPrecise p0, GPointPrecis
|
|||||||
// Finish color hack
|
// Finish color hack
|
||||||
ctx->draw_state.fill_color = temp_color;
|
ctx->draw_state.fill_color = temp_color;
|
||||||
|
|
||||||
// Return without drawing the line since its not neccessary
|
// Return without drawing the line since its not necessary
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user