fix screenshot mem usage + fix backstage not starting after being stopped once
This commit is contained in:
@@ -15,3 +15,13 @@ func CaptureDisplayRGBAPreferBitBlt(display int) (*image.RGBA, error) {
|
||||
}
|
||||
return CaptureDisplayRGBA(display)
|
||||
}
|
||||
|
||||
func CaptureDisplayRGBAThumbnail(display, maxHeight int) (*image.RGBA, error) {
|
||||
return captureDisplayThumbnailBitBlt(display, maxHeight)
|
||||
}
|
||||
|
||||
func CleanupThumbnailCapture() {
|
||||
thumbnailMu.Lock()
|
||||
thumbnailState.reset()
|
||||
thumbnailMu.Unlock()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user