~eliasnaur/gio-patches

gio: app: change clear color to transparent v1 PROPOSED

Paulo Melo
Paulo Melo: 1
 app: change clear color to transparent

 1 files changed, 1 insertions(+), 1 deletions(-)
#427001 apple.yml success
#427002 freebsd.yml success
#427003 linux.yml failed
#427004 openbsd.yml success
Export patchset (mbox)
How do I use this?

Copy & paste the following snippet into your terminal to import this patchset into git:

curl -s https://lists.sr.ht/~eliasnaur/gio-patches/patches/20286/mbox | git am -3
Learn more about email & git
View this thread in the archives

[PATCH gio] app: change clear color to transparent Export this patch

Paulo Melo
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
builds.sr.ht
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