[vte/wip/sixels: 45/82] terminal: Fix logic error causing image painting loop to exit early
- From: Hans Petter Jansson <hansp src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vte/wip/sixels: 45/82] terminal: Fix logic error causing image painting loop to exit early
- Date: Fri, 26 Jun 2020 00:46:53 +0000 (UTC)
commit c3a4813b5f5047d2ef78e36c8de5619c4a67025c
Author: Hans Petter Jansson <hpj cl no>
Date: Thu Jun 11 17:26:57 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 f937cde2..67bc051a 100644
--- a/src/vte.cc
+++ b/src/vte.cc
@@ -9253,10 +9253,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]