@@ -66,8 +66,8 @@ public TerminalRenderer(int textSize, Typeface typeface,int mDefColor) {
66
66
}
67
67
68
68
/** Render the terminal to a canvas with at a specified row scroll, and an optional rectangular selection. */
69
- public final void render (TerminalEmulator mEmulator , Canvas canvas , int topRow ,
70
- int selectionY1 , int selectionY2 , int selectionX1 , int selectionX2 ) {
69
+ public void render (TerminalEmulator mEmulator , Canvas canvas , int topRow ,
70
+ int selectionY1 , int selectionY2 , int selectionX1 , int selectionX2 ) {
71
71
final boolean reverseVideo = mEmulator .isReverseVideo ();
72
72
final int endRow = topRow + mEmulator .mRows ;
73
73
final int columns = mEmulator .mColumns ;
@@ -136,11 +136,8 @@ public final void render(TerminalEmulator mEmulator, Canvas canvas, int topRow,
136
136
//else
137
137
//cursorColor=Color.TRANSPARENT;
138
138
139
- boolean invertCursorTextColor = false ;
140
- if (lastRunInsideCursor && cursorShape == TerminalEmulator .TERMINAL_CURSOR_STYLE_BLOCK ) {
141
- invertCursorTextColor = true ;
142
- }
143
-
139
+ boolean invertCursorTextColor = lastRunInsideCursor && cursorShape == TerminalEmulator .TERMINAL_CURSOR_STYLE_BLOCK ;
140
+
144
141
drawTextRun (canvas , line , palette , heightOffset , lastRunStartColumn , columnWidthSinceLastRun ,
145
142
lastRunStartIndex , charsSinceLastRun , measuredWidthForRun ,
146
143
cursorColor , cursorShape , lastRunStyle , reverseVideo || invertCursorTextColor || lastRunInsideSelection );
@@ -167,10 +164,7 @@ public final void render(TerminalEmulator mEmulator, Canvas canvas, int topRow,
167
164
final int charsSinceLastRun = currentCharIndex - lastRunStartIndex ;
168
165
int cursorColor = lastRunInsideCursor ? mEmulator .mColors .mCurrentColors [TextStyle .COLOR_INDEX_CURSOR ] : 0 ;
169
166
170
- boolean invertCursorTextColor = false ;
171
- if (lastRunInsideCursor && cursorShape == TerminalEmulator .TERMINAL_CURSOR_STYLE_BLOCK ) {
172
- invertCursorTextColor = true ;
173
- }
167
+ boolean invertCursorTextColor = lastRunInsideCursor && cursorShape == TerminalEmulator .TERMINAL_CURSOR_STYLE_BLOCK ;
174
168
drawTextRun (canvas , line , palette , heightOffset , lastRunStartColumn , columnWidthSinceLastRun , lastRunStartIndex , charsSinceLastRun ,
175
169
measuredWidthForRun , cursorColor , cursorShape , lastRunStyle , reverseVideo || invertCursorTextColor || lastRunInsideSelection );
176
170
}
0 commit comments