fix micropython breakout_roundlcd rendering of graphics primitives
@@ -474,10 +474,10 @@ mp_obj_t BreakoutRoundLCD_triangle(size_t n_args, const mp_obj_t *pos_args, mp_m
int x1 = args[ARG_x1].u_int;
int y1 = args[ARG_y1].u_int;
- int x2 = args[ARG_x1].u_int;
- int y2 = args[ARG_y1].u_int;
- int x3 = args[ARG_x1].u_int;
- int y3 = args[ARG_y1].u_int;
+ int x2 = args[ARG_x2].u_int;
+ int y2 = args[ARG_y2].u_int;
+ int x3 = args[ARG_x3].u_int;
+ int y3 = args[ARG_y3].u_int;
Point p1(x1, y1);
Point p2(x2, y2);
@@ -504,8 +504,8 @@ mp_obj_t BreakoutRoundLCD_line(size_t n_args, const mp_obj_t *pos_args, mp_map_t
int x1 = args[ARG_x1].u_int;
int y1 = args[ARG_y1].u_int;
- int x2 = args[ARG_x1].u_int;
- int y2 = args[ARG_y1].u_int;
+ int x2 = args[ARG_x2].u_int;
+ int y2 = args[ARG_y2].u_int;
Point p1(x1, y1);
Point p2(x2, y2);
