Skip to content

Commit a3e8ac9

Browse files
committed
use fyne window interface
1 parent d0e0bb5 commit a3e8ac9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

internal/painter/gl/painter.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ var _ Painter = (*painter)(nil)
136136

137137
func (p *painter) Clear() {
138138
var r, g, b, a uint32
139-
if win, ok := p.contextProvider.(interface{ Transparent() bool }); ok && win.Transparent() {
139+
if win, ok := p.contextProvider.(fyne.Window); ok && win.Transparent() {
140140
r, g, b, a = 0, 0, 0, 0
141141
} else {
142142
r, g, b, a = theme.Color(theme.ColorNameBackground).RGBA()

0 commit comments

Comments
 (0)