2021-07-30 22:29:20 +00:00
|
|
|
package gui
|
|
|
|
|
|
|
|
import (
|
2023-01-16 02:11:07 +00:00
|
|
|
"tuxpa.in/t/erm/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) {
|
2023-01-16 02:11:07 +00:00
|
|
|
render.New(screen, g.terminal, g.fontManager, g.popupMessages, g.opacity, g.enableLigatures, g.cursorImage).
|
2021-08-02 19:55:04 +00:00
|
|
|
Draw()
|
2021-07-30 22:29:20 +00:00
|
|
|
|
|
|
|
if g.screenshotRequested {
|
2021-08-02 19:55:04 +00:00
|
|
|
g.takeScreenshot(screen)
|
2021-07-30 22:29:20 +00:00
|
|
|
}
|
|
|
|
}
|