erm/internal/app/darktile/gui/draw.go

18 lines
448 B
Go
Raw Normal View History

2021-07-30 22:29:20 +00:00
package gui
import (
"github.com/hajimehoshi/ebiten/v2"
"github.com/liamg/darktile/internal/app/darktile/gui/render"
2021-07-30 22:29:20 +00:00
)
// Draw renders the terminal GUI to the ebtien window. Required to implement the ebiten interface.
func (g *GUI) Draw(screen *ebiten.Image) {
render.
New(screen, g.terminal, g.fontManager, g.popupMessages, g.opacity, g.enableLigatures, g.cursorImage).
Draw()
2021-07-30 22:29:20 +00:00
if g.screenshotRequested {
g.takeScreenshot(screen)
2021-07-30 22:29:20 +00:00
}
}