[PATCH gio] app: change clear color to transparent
Export this patch
on wasm canvas the background can be transparent.
this change is to permit the usage of black transparent instead
of white opaque.
Signed-off-by: Paulo Melo <paulo.durrer.melo@gmail.com>
---
app/loop.go | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/app/loop.go b/app/loop.go
index cf00c41..0dadeac 100644
--- a/app/loop.go
+++ b/app/loop.go
@@ -86,7 +86,7 @@ func (l *renderLoop) renderLoop(ctx window.Context) error {
l.refreshErr <- ctx.MakeCurrent()
case frame := <-l.frames:
ctx.Lock()
- g.Clear(color.NRGBA{A: 0xff, R: 0xff, G: 0xff, B: 0xff})
+ g.Clear(color.NRGBA{A: 0x00, R: 0x00, G: 0x00, B: 0x00})
g.Collect(frame.viewport, frame.ops)
// Signal that we're done with the frame ops.
l.ack <- struct{}{}
--
2.26.2
gio/patches: FAILED in 20m48s
[app: change clear color to transparent][0] from [Paulo Melo][1]
[0]: https://lists.sr.ht/~eliasnaur/gio-patches/patches/20286
[1]: mailto:paulo.durrer.melo@gmail.com
✗ #427003 FAILED gio/patches/linux.yml https://builds.sr.ht/~eliasnaur/job/427003
✓ #427001 SUCCESS gio/patches/apple.yml https://builds.sr.ht/~eliasnaur/job/427001
✓ #427004 SUCCESS gio/patches/openbsd.yml https://builds.sr.ht/~eliasnaur/job/427004
✓ #427002 SUCCESS gio/patches/freebsd.yml https://builds.sr.ht/~eliasnaur/job/427002