fast background

This commit is contained in:
IliaDenisov
2026-03-08 15:58:57 +02:00
parent 1c2fc30127
commit fdcbb5d6f4
4 changed files with 411 additions and 0 deletions
+5
View File
@@ -5,6 +5,11 @@ import (
)
func (w *World) drawBackground(drawer PrimitiveDrawer, params RenderParams, rect RectPx) {
if gd, ok := drawer.(*GGDrawer); ok {
if gd.drawBackgroundFast(w, params, rect) {
return
}
}
th := w.Theme()
bgImg := th.BackgroundImage()
if bgImg == nil {