From 533b6ebe91e6fe77843ee72fd8ca42ae9f711893 Mon Sep 17 00:00:00 2001 From: hippoz <10706925-hippoz@users.noreply.gitlab.com> Date: Tue, 26 Jul 2022 01:06:07 +0300 Subject: [PATCH] remove png function as it was not very useful --- src/Painter.cpp | 7 ------- src/Painter.hpp | 1 - 2 files changed, 8 deletions(-) diff --git a/src/Painter.cpp b/src/Painter.cpp index bc49c05..adad2f6 100644 --- a/src/Painter.cpp +++ b/src/Painter.cpp @@ -102,11 +102,4 @@ void Painter::flush_paint_group() { m_cairo->get_target()->flush(); } -Point Painter::png(std::string path) { - auto image = Cairo::ImageSurface::create_from_png(path.c_str()); - m_cairo->set_source(image, 0, 0); - - return Point(image->get_width(), image->get_height()); -} - } diff --git a/src/Painter.hpp b/src/Painter.hpp index 024d554..b862104 100644 --- a/src/Painter.hpp +++ b/src/Painter.hpp @@ -30,7 +30,6 @@ public: bool can_paint() { if (m_cairo) return true; else return false; } void source_rgb(RGB source_rgb); - Point png(std::string path); void fill(); void begin_paint_group();