internal/atlas: Bug fix: Wrong screenshot size

Updates #1736
This commit is contained in:
Hajime Hoshi 2021-07-29 16:33:49 +09:00
parent 0cb3b791d2
commit 38e1094219

View File

@ -685,7 +685,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 {