[vte/wip/sixels] terminal: Properly get XTERM_SIXEL_PRIVATE_COLOR_REGISTERS from modes
- From: Hans Petter Jansson <hansp src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vte/wip/sixels] terminal: Properly get XTERM_SIXEL_PRIVATE_COLOR_REGISTERS from modes
- Date: Fri, 26 Jun 2020 16:36:28 +0000 (UTC)
commit 959fd9fada1d22b8017f029836bac9f7199aed5d
Author: Hans Petter Jansson <hpj cl no>
Date: Fri Jun 26 18:32:08 2020 +0200
terminal: Properly get XTERM_SIXEL_PRIVATE_COLOR_REGISTERS from modes
src/vte.cc | 2 --
src/vteinternal.hh | 1 -
src/vteseq.cc | 3 ++-
3 files changed, 2 insertions(+), 4 deletions(-)
---
diff --git a/src/vte.cc b/src/vte.cc
index 4264fab3..8c818b2e 100644
--- a/src/vte.cc
+++ b/src/vte.cc
@@ -9951,8 +9951,6 @@ Terminal::reset(bool clear_tabstops,
m_modifiers = 0;
/* Reset SIXEL-scrolls-right mode */
m_sixel_scrolls_right = FALSE;
- /* Reset privae color register mode */
- m_sixel_use_private_register = FALSE;
/* Reset SIXEL color register */
sixel_parser_set_default_color(&m_sixel_state);
/* Reset the saved cursor. */
diff --git a/src/vteinternal.hh b/src/vteinternal.hh
index 43a5ccdf..cb248437 100644
--- a/src/vteinternal.hh
+++ b/src/vteinternal.hh
@@ -757,7 +757,6 @@ public:
gboolean m_images_enabled;
gboolean m_sixel_scrolls_right;
- gboolean m_sixel_use_private_register;
sixel_state_t m_sixel_state;
/* State variables for handling match checks. */
diff --git a/src/vteseq.cc b/src/vteseq.cc
index b217cbc1..102bca07 100644
--- a/src/vteseq.cc
+++ b/src/vteseq.cc
@@ -4371,7 +4371,8 @@ Terminal::DECSIXEL(vte::parser::Sequence const& seq)
/* Parse image */
- if (sixel_parser_init(&m_sixel_state, nfg, nbg, m_sixel_use_private_register) < 0) {
+ if (sixel_parser_init(&m_sixel_state, nfg, nbg,
+ m_modes_private.XTERM_SIXEL_PRIVATE_COLOR_REGISTERS()) < 0) {
sixel_parser_deinit(&m_sixel_state);
return;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]