[vte/wip/sixels: 55/111] terminal: Fix logic error causing image painting loop to exit early




commit 742a98502173ad369bc53bfad0a4c42835934558
Author: Hans Petter Jansson <hpj cl no>
Date:   Sat Aug 8 20:42:49 2020 +0200

    terminal: Fix logic error causing image painting loop to exit early

 src/vte.cc | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/src/vte.cc b/src/vte.cc
index 1579c3e3..eabd5b8f 100644
--- a/src/vte.cc
+++ b/src/vte.cc
@@ -9256,10 +9256,11 @@ Terminal::widget_draw(cairo_t *cr)
                auto it = image_map->begin ();
                for (; it != image_map->end (); ++it) {
                        vte::image::Image *image = it->second;
+
                         if (image->get_bottom() < top_row
                             || image->get_top() > bottom_row)
-                               break;
-                       /* Display images */
+                               continue;
+
                        int x = m_padding.left + image->get_left () * m_cell_width;
                        int y = m_padding.top + (image->get_top () - m_screen->scroll_delta) * m_cell_height;
                        image->paint (cr, x, y);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]