From ab004f73bf042d118da2ff326640c912703192af Mon Sep 17 00:00:00 2001 From: Robin Burchell Date: Sun, 2 Jun 2019 15:56:33 +0200 Subject: Painter: Reduce the number of draw_text overloads to only involve StringView No more char + int sequences, as that's literally what StringView is for. --- SharedGraphics/Painter.h | 2 -- 1 file changed, 2 deletions(-) (limited to 'SharedGraphics/Painter.h') diff --git a/SharedGraphics/Painter.h b/SharedGraphics/Painter.h index 1008d287ab..593474e3c3 100644 --- a/SharedGraphics/Painter.h +++ b/SharedGraphics/Painter.h @@ -30,8 +30,6 @@ public: void blit_tiled(const Point&, const GraphicsBitmap&, const Rect& src_rect); void blit_offset(const Point&, const GraphicsBitmap&, const Rect& src_rect, const Point&); void blit_scaled(const Point&, const GraphicsBitmap&, const Rect& src_rect, const Size&); - void draw_text(const Rect&, const char* text, int length, const Font&, TextAlignment = TextAlignment::TopLeft, Color = Color::Black, TextElision = TextElision::None); - void draw_text(const Rect&, const char* text, int length, TextAlignment = TextAlignment::TopLeft, Color = Color::Black, TextElision = TextElision::None); void draw_text(const Rect&, const StringView&, const Font&, TextAlignment = TextAlignment::TopLeft, Color = Color::Black, TextElision = TextElision::None); void draw_text(const Rect&, const StringView&, TextAlignment = TextAlignment::TopLeft, Color = Color::Black, TextElision = TextElision::None); void draw_glyph(const Point&, char, Color); -- cgit v1.2.3