Fixed rotating layouts; Added Shader layout
This commit is contained in:
13 files changed
+207
-93
No files matched your search
@@ -122,7 +122,7 @@ func (w *Spectrum) Refresh(ctx app.Context) bool {
|
||||
bounds := w.bounds.Load()
|
||||
if w.changed.CompareAndSwap(true, false) {
|
||||
if w.buffer == nil {
|
||||
w.buffer = app.BufferFor(ctx, bounds.Size())
|
||||
w.buffer = app.BufferFor(ctx.Display().ColorModel(), bounds.Size())
|
||||
app.ImageCopy(w.buffer, w.styles.Window.Background())
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user