[vte/wip/sixels: 35/82] ring: Clean up a few comments relating to sixels
- From: Hans Petter Jansson <hansp src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vte/wip/sixels: 35/82] ring: Clean up a few comments relating to sixels
- Date: Fri, 26 Jun 2020 00:46:03 +0000 (UTC)
commit b5e03d8c6ffd3d859599281232ae7eed31a667d4
Author: Hans Petter Jansson <hpj cl no>
Date: Tue Jun 9 00:25:24 2020 +0200
ring: Clean up a few comments relating to sixels
src/ring.cc | 17 +++--------------
1 file changed, 3 insertions(+), 14 deletions(-)
---
diff --git a/src/ring.cc b/src/ring.cc
index 28d7524a..35422f7f 100644
--- a/src/ring.cc
+++ b/src/ring.cc
@@ -103,7 +103,7 @@ Ring::~Ring()
g_free (m_array);
- /* Clear SIXEL images */
+ /* Clear sixel images */
for (auto it = image_map->begin (); it != image_map->end (); ++it)
delete it->second;
image_map->clear();
@@ -606,7 +606,7 @@ Ring::reset()
m_start = m_writable = m_end;
m_cached_row_num = (row_t)-1;
- /* Clear SIXEL images */
+ /* Clear sixel images */
for (auto it = image_map->begin (); it != image_map->end (); ++it)
delete it->second;
image_map->clear();
@@ -1531,22 +1531,11 @@ Ring::append_image (cairo_surface_t *surface, gint pixelwidth, gint pixelheight,
char_width = pixelwidth / width;
char_height = pixelwidth / height;
- /* composition */
for (auto it = m_image_map->lower_bound (top); it != m_image_map->end (); ) {
Image *current = it->second;
- /* Combine two images if one's area contains another's area */
+ /* Delete images that are completely covered by this image */
if (image->contains (*current)) {
- /*
- * Replace current image with new image
- *
- * +--------------+
- * | new |
- * | ........... |
- * | : current : |
- * | :.........: |
- * +--------------+
- */
m_image_onscreen_resource_counter -= current->resource_size ();
/* We must advance the iterator before erasure */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]