Return error from NewWindow

This commit is contained in:
Sasha Koshka 2023-07-01 11:45:48 -04:00
parent 48fe7ef5e1
commit b00a7302b4
1 changed files with 1 additions and 1 deletions

View File

@ -35,7 +35,7 @@ func Stop () {
backend = nil
}
func NewWindow (bounds image.Rectangle) MainWindow {
func NewWindow (bounds image.Rectangle) (MainWindow, error) {
assertBackend()
return backend.NewWindow(bounds)
}