Redid color system
This commit is contained in:
+2
-2
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user