BackendLink.NewSurface can return an error

This commit is contained in:
Sasha Koshka 2024-06-02 22:47:17 -04:00
parent b1c927732f
commit 641514c6d1

View File

@ -18,7 +18,7 @@ type BackendLink interface {
// NewCanvas creates a new blank canvas with the specified bounds.
NewCanvas (image.Rectangle) canvas.Canvas
// NewSurface creates a new surface with the specified bounds.
NewSurface (image.Rectangle) SurfaceLink
NewSurface (image.Rectangle) (SurfaceLink, error)
}
// SurfaceLink wraps a Surface created by the backend implementation, allowing