[vte/wip/sixels: 47/111] terminal: Draw stacked images in order of appearance (oldest to newest)
- From: Christian Persch <chpe src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vte/wip/sixels: 47/111] terminal: Draw stacked images in order of appearance (oldest to newest)
- Date: Sat, 8 Aug 2020 18:43:00 +0000 (UTC)
commit 9f554ae935fac12e2feed0a30fafcf71dd91c3ae
Author: Hans Petter Jansson <hpj cl no>
Date: Sat Aug 8 20:42:48 2020 +0200
terminal: Draw stacked images in order of appearance (oldest to newest)
src/vte.cc | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/src/vte.cc b/src/vte.cc
index 2886f3f9..65b167d4 100644
--- a/src/vte.cc
+++ b/src/vte.cc
@@ -9313,11 +9313,12 @@ Terminal::widget_draw(cairo_t *cr)
if (m_sixel_enabled) {
vte::grid::row_t top_row = first_displayed_row();
vte::grid::row_t bottom_row = last_displayed_row();
- auto image_map = ring->m_image_map;
- auto it = image_map->lower_bound (top_row);
+ auto image_map = ring->m_image_priority_map;
+ auto it = image_map->begin ();
for (; it != image_map->end (); ++it) {
vte::image::Image *image = it->second;
- if (image->get_top () > bottom_row)
+ if (image->get_bottom() < top_row
+ || image->get_top() > bottom_row)
break;
/* Display images */
int x = m_padding.left + image->get_left () * m_cell_width;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]