Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Utilities
Konsole
Commits
bc386e19
Commit
bc386e19
authored
Oct 12, 2020
by
David Redondo
🏎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix colored characters being drawn italic
Seems like a typo happened when moving the code
parent
60b5e7e6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
src/terminalDisplay/TerminalPainter.cpp
src/terminalDisplay/TerminalPainter.cpp
+7
-7
No files found.
src/terminalDisplay/TerminalPainter.cpp
View file @
bc386e19
...
...
@@ -455,7 +455,7 @@ namespace Konsole
const
bool
useBold
=
(((
style
->
rendition
&
RE_BOLD
)
!=
0
)
&&
_display
->
_boldIntense
);
const
bool
useUnderline
=
((
style
->
rendition
&
RE_UNDERLINE
)
!=
0
)
||
_display
->
font
().
underline
();
const
bool
useItalic
=
((
style
->
rendition
*
RE_ITALIC
)
!=
0
)
||
_display
->
font
().
italic
();
const
bool
useItalic
=
((
style
->
rendition
&
RE_ITALIC
)
!=
0
)
||
_display
->
font
().
italic
();
const
bool
useStrikeOut
=
((
style
->
rendition
&
RE_STRIKEOUT
)
!=
0
)
||
_display
->
font
().
strikeOut
();
const
bool
useOverline
=
((
style
->
rendition
&
RE_OVERLINE
)
!=
0
)
||
_display
->
font
().
overline
();
...
...
@@ -466,7 +466,7 @@ namespace Konsole
||
currentFont
.
italic
()
!=
useItalic
||
currentFont
.
strikeOut
()
!=
useStrikeOut
||
currentFont
.
overline
()
!=
useOverline
)
{
currentFont
.
setWeight
(
useBold
?
boldWeight
:
normalWeight
);
currentFont
.
setUnderline
(
useUnderline
);
currentFont
.
setItalic
(
useItalic
);
...
...
@@ -502,9 +502,9 @@ namespace Konsole
painter
.
setClipRegion
(
origClipRegion
);
painter
.
setClipping
(
origClipping
);
}
void
TerminalPainter
::
drawLineCharString
(
QPainter
&
painter
,
int
x
,
int
y
,
const
QString
&
str
,
const
Character
*
attributes
)
const
Character
*
attributes
)
{
painter
.
setRenderHint
(
QPainter
::
Antialiasing
,
_display
->
_antialiasText
);
...
...
@@ -516,13 +516,13 @@ namespace Konsole
}
painter
.
setRenderHint
(
QPainter
::
Antialiasing
,
false
);
}
void
TerminalPainter
::
drawInputMethodPreeditString
(
QPainter
&
painter
,
const
QRect
&
rect
)
void
TerminalPainter
::
drawInputMethodPreeditString
(
QPainter
&
painter
,
const
QRect
&
rect
)
{
if
(
_display
->
_inputMethodData
.
preeditString
.
isEmpty
()
||
!
_display
->
isCursorOnDisplay
())
{
return
;
}
const
QPoint
cursorPos
=
_display
->
cursorPosition
();
QColor
characterColor
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment