Redid color system

This commit is contained in:
2022-11-15 11:16:29 -05:00
parent 100e72fada
commit de3e4b528b
5 changed files with 35 additions and 16 deletions
+2 -2
View File
@@ -30,7 +30,7 @@ type Backend struct {
face font.Face
}
colors [4]xgraphics.BGRA
colors [8]xgraphics.BGRA
metrics struct {
windowWidth int
@@ -125,7 +125,7 @@ func (backend *Backend) reallocateCanvas () {
backend.metrics.windowWidth,
backend.metrics.windowHeight))
backend.canvas.For (func (x, y int) xgraphics.BGRA {
return backend.colors[stone.ColorApplication]
return backend.colors[stone.ColorBackground]
})
backend.canvas.XSurfaceSet(backend.window.Id)