aboutsummaryrefslogtreecommitdiffstats
path: root/win/win.go
diff options
context:
space:
mode:
Diffstat (limited to 'win/win.go')
-rw-r--r--win/win.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/win/win.go b/win/win.go
index e47baf2..82637f1 100644
--- a/win/win.go
+++ b/win/win.go
@@ -148,6 +148,9 @@ func (w *Win) flush(r image.Rectangle) {
bounds := w.rgba.Bounds()
r = bounds.Intersect(r)
+ if r.Empty() {
+ return
+ }
tmp := image.NewRGBA(r)
draw.Draw(tmp, r, w.rgba, r.Min, draw.Src)