From f59c8b1e9600f1f4f464e3c81e61115f83360022 Mon Sep 17 00:00:00 2001 From: Sasha Koshka Date: Sun, 2 Jun 2024 13:34:11 -0400 Subject: [PATCH] Make SurfaceLink an io.Closer --- internal/system/system.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/internal/system/system.go b/internal/system/system.go index 0aa61f5..6f8d6c7 100644 --- a/internal/system/system.go +++ b/internal/system/system.go @@ -1,5 +1,6 @@ package system +import "io" import "image" import "git.tebibyte.media/tomo/tomo/canvas" @@ -23,6 +24,7 @@ type BackendLink interface { // SurfaceLink wraps a Surface created by the backend implementation, allowing // the System a higher level of control over it. type SurfaceLink interface { + io.Closer GetSurface () any SetSize (image.Rectangle) }