diff --git a/internal/atlas/image.go b/internal/atlas/image.go index e5cd447b8..1628a4b8c 100644 --- a/internal/atlas/image.go +++ b/internal/atlas/image.go @@ -730,7 +730,7 @@ func (i *Image) DumpScreenshot(path string, blackbg bool) error { backendsM.Lock() defer backendsM.Unlock() - return i.backend.restorable.Dump(path, blackbg, image.Rect(paddingSize, paddingSize, i.width-2*paddingSize, i.height-2*paddingSize)) + return i.backend.restorable.Dump(path, blackbg, image.Rect(paddingSize, paddingSize, paddingSize+i.width, paddingSize+i.height)) } func NewScreenFramebufferImage(width, height int) *Image {