Skip to content

Commit 039973e

Browse files
doug1234Douglas Ayers
andauthored
Fix unsage mix of bool and int warning. (#510)
* Fix unsage mix of bool and int warning. * Silghtly different approach to fixing the bool and int warning. --------- Co-authored-by: Douglas Ayers <[email protected]>
1 parent d0aef0c commit 039973e

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

lib/TerminalDisplay.cpp

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1150,7 +1150,9 @@ void TerminalDisplay::updateImage()
11501150
if (!_resizing) // not while _resizing, we're expecting a paintEvent
11511151
for (x = 0; x < columnsToUpdate; ++x)
11521152
{
1153-
_hasBlinker |= (newLine[x].rendition & RE_BLINK);
1153+
if ((newLine[x].rendition & RE_BLINK) != 0) {
1154+
_hasBlinker = true;
1155+
}
11541156

11551157
// Start drawing if this character or the next one differs.
11561158
// We also take the next one into account to handle the situation
@@ -1208,8 +1210,11 @@ void TerminalDisplay::updateImage()
12081210
//although both top and bottom halves contain the same characters, only
12091211
//the top one is actually
12101212
//drawn.
1211-
if (_lineProperties.count() > y)
1212-
updateLine |= (_lineProperties[y] & LINE_DOUBLEHEIGHT);
1213+
if (_lineProperties.count() > y) {
1214+
if ((_lineProperties[y] & LINE_DOUBLEHEIGHT) != 0) {
1215+
updateLine = true;
1216+
}
1217+
}
12131218

12141219
// if the characters on the line are different in the old and the new _image
12151220
// then this line must be repainted.

0 commit comments

Comments
 (0)