mirror of
https://github.com/Swordfish90/cool-retro-term.git
synced 2025-09-25 06:32:43 +01:00
Using framebuffer object instead of image to render the terminal. Improves performances.
This commit is contained in:
@@ -194,14 +194,14 @@ KTerminalDisplay::KTerminalDisplay(QQuickItem *parent) :
|
||||
|
||||
setColorTable(base_color_table);
|
||||
|
||||
setRenderTarget(QQuickPaintedItem::FramebufferObject);
|
||||
|
||||
//new AutoScrollHandler(this);
|
||||
|
||||
setAcceptedMouseButtons(Qt::LeftButton);
|
||||
setFlags(ItemHasContents | ItemAcceptsInputMethod);
|
||||
//installEventFilter(this);
|
||||
|
||||
m_font.setStyleHint(QFont::TypeWriter);
|
||||
|
||||
setVTFont(m_font);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user