[vte] widget: Cleanup integer vs. boolean around faux bold
- From: Egmont Koblinger <egmontkob src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vte] widget: Cleanup integer vs. boolean around faux bold
- Date: Sat, 3 Mar 2018 16:33:59 +0000 (UTC)
commit f2d1926ca4cac16e8fc3f77deb1c7eb02df35b66
Author: Egmont Koblinger <egmont gmail com>
Date: Sat Mar 3 17:33:01 2018 +0100
widget: Cleanup integer vs. boolean around faux bold
https://bugzilla.gnome.org/show_bug.cgi?id=793987
src/vte.cc | 6 ++----
1 files changed, 2 insertions(+), 4 deletions(-)
---
diff --git a/src/vte.cc b/src/vte.cc
index 413e9b5..cfa8a19 100644
--- a/src/vte.cc
+++ b/src/vte.cc
@@ -9031,8 +9031,7 @@ VteTerminalPrivate::draw_cells(struct _vte_draw_text_request *items,
columns += items[i].columns;
}
if (clear && (draw_default_bg || back != VTE_DEFAULT_BG)) {
- gint bold_offset = _vte_draw_has_bold(m_draw,
- VTE_DRAW_BOLD) ? 0 : bold;
+ gint bold_offset = (bold && !_vte_draw_has_bold(m_draw, VTE_DRAW_BOLD)) ? 1 : 0;
_vte_draw_fill_rectangle(m_draw,
x,
y,
@@ -9506,8 +9505,7 @@ VteTerminalPrivate::draw_rows(VteScreen *screen_,
}
if (back != VTE_DEFAULT_BG) {
vte::color::rgb bg;
- gint bold_offset = _vte_draw_has_bold(m_draw,
- VTE_DRAW_BOLD) ? 0 :
bold;
+ gint bold_offset = (bold && !_vte_draw_has_bold(m_draw,
VTE_DRAW_BOLD)) ? 1 : 0;
rgb_from_index<8, 8, 8>(back, bg);
_vte_draw_fill_rectangle (
m_draw,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]