// At this point, if the user hasn't asked for an explicit flush, just paint the backbuffer. It's prone to
// problems if the user isn't flushing properly but it reduces flickering when resizing the window and the code
// is asynchronously responding to the resize
- //if(flushed) {
+ if(flushed) {
updateBackBuffer(fontWidth, fontHeight, terminalResized, terminalSize);
flushed = false;
- //}
+ }
componentGraphics.drawImage(backbuffer, 0, 0, getWidth(), getHeight(), 0, 0, getWidth(), getHeight(), null);
//Setup the graphics object
Graphics2D backbufferGraphics = backbuffer.createGraphics();
- backbufferGraphics.setColor(colorConfiguration.toAWTColor(TextColor.ANSI.DEFAULT, false, false));
- backbufferGraphics.fillRect(0, 0, getWidth(), getHeight());
if(isTextAntiAliased()) {
backbufferGraphics.setRenderingHint(RenderingHints.KEY_TEXT_ANTIALIASING, RenderingHints.VALUE_TEXT_ANTIALIAS_ON);
(deviceConfiguration.isCursorBlinking() && blinkOn)); //If the cursor is blinking, only draw when blinkOn is true
CharacterState characterState = new CharacterState(character, foregroundColor, backgroundColor, drawCursor);
- //if(!characterState.equals(visualState[rowIndex][columnIndex]) || terminalResized) {
+ if(!characterState.equals(visualState[rowIndex][columnIndex]) || terminalResized) {
drawCharacter(backbufferGraphics,
character,
columnIndex,
if(TerminalTextUtils.isCharCJK(character.getCharacter())) {
visualState[rowIndex][columnIndex+1] = characterState;
}
- //}
+ }
if(character.getModifiers().contains(SGR.BLINK)) {
foundBlinkingCharacters = true;