[vte/wip/sixels: 29/82] image: paint() has nothing to return, so make it void
- From: Hans Petter Jansson <hansp src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vte/wip/sixels: 29/82] image: paint() has nothing to return, so make it void
- Date: Fri, 26 Jun 2020 00:45:32 +0000 (UTC)
commit b495492b434601009adddacfc043db1db0e6a671
Author: Hans Petter Jansson <hpj cl no>
Date: Wed Jun 3 21:41:59 2020 +0200
image: paint() has nothing to return, so make it void
src/image.cc | 4 +---
src/image.hh | 2 +-
2 files changed, 2 insertions(+), 4 deletions(-)
---
diff --git a/src/image.cc b/src/image.cc
index 18ebc7d4..53115752 100644
--- a/src/image.cc
+++ b/src/image.cc
@@ -38,7 +38,7 @@ Image::contains(const Image &other) const
}
/* Paint the image with provided cairo context */
-bool
+void
Image::paint(cairo_t *cr, int offsetx, int offsety)
{
cairo_save(cr);
@@ -47,8 +47,6 @@ Image::paint(cairo_t *cr, int offsetx, int offsety)
cairo_set_source_surface(cr, m_surface.get(), offsetx, offsety);
cairo_paint(cr);
cairo_restore(cr);
-
- return true;
}
} // namespace image
diff --git a/src/image.hh b/src/image.hh
index fe6f334e..f9b1ea88 100644
--- a/src/image.hh
+++ b/src/image.hh
@@ -60,7 +60,7 @@ public:
return cairo_image_surface_get_stride(m_surface.get()) * m_pixelheight;
}
bool contains(const Image &other) const;
- bool paint(cairo_t *cr, gint offsetx, gint offsety);
+ void paint(cairo_t *cr, gint offsetx, gint offsety);
};
} // namespace image
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]