From 5a62a79a93bee02ced6f9172bad42db3eb59677a Mon Sep 17 00:00:00 2001 From: ZodiusInfuser Date: Thu, 16 Feb 2023 10:28:07 +0000 Subject: [PATCH] Renamed thick_line --- libraries/pico_graphics/pico_graphics.cpp | 4 ++-- libraries/pico_graphics/pico_graphics.hpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/libraries/pico_graphics/pico_graphics.cpp b/libraries/pico_graphics/pico_graphics.cpp index df3a9175..6541ae53 100644 --- a/libraries/pico_graphics/pico_graphics.cpp +++ b/libraries/pico_graphics/pico_graphics.cpp @@ -170,7 +170,7 @@ namespace pimoroni { }, t, p.x, p.y, s, a); } else { hershey::text(hershey_font, [this](int32_t x1, int32_t y1, int32_t x2, int32_t y2) { - thicc_line(Point(x1, y1), Point(x2, y2), thickness); + thick_line(Point(x1, y1), Point(x2, y2), thickness); }, t, p.x, p.y, s, a); } return; @@ -298,7 +298,7 @@ namespace pimoroni { } } - void PicoGraphics::thicc_line(Point p1, Point p2, uint thickness) { + void PicoGraphics::thick_line(Point p1, Point p2, uint thickness) { // general purpose line // lines are either "shallow" or "steep" based on whether the x delta // is greater than the y delta diff --git a/libraries/pico_graphics/pico_graphics.hpp b/libraries/pico_graphics/pico_graphics.hpp index 8e6a0df8..88474e23 100644 --- a/libraries/pico_graphics/pico_graphics.hpp +++ b/libraries/pico_graphics/pico_graphics.hpp @@ -266,7 +266,7 @@ namespace pimoroni { void triangle(Point p1, Point p2, Point p3); void line(Point p1, Point p2); void from_hsv(float h, float s, float v, uint8_t &r, uint8_t &g, uint8_t &b); - void thicc_line(Point p1, Point p2, uint thickness); + void thick_line(Point p1, Point p2, uint thickness); protected: void frame_convert_rgb565(conversion_callback_func callback, next_pixel_func get_next_pixel);