Files
overlord/Overlord-Client/cmd/agent/capture/capture_linux.go
T

22 lines
343 B
Go
Raw Normal View History

2026-03-05 00:04:26 -06:00
//go:build linux
package capture
import (
"image"
2026-04-03 13:24:49 -05:00
"github.com/kbinani/screenshot"
2026-03-05 00:04:26 -06:00
)
2026-04-03 13:24:49 -05:00
var activeDisplays = func() int {
return screenshot.NumActiveDisplays()
}
2026-03-05 00:04:26 -06:00
2026-04-03 13:24:49 -05:00
var captureDisplayFn = func(display int) (*image.RGBA, error) {
return screenshot.CaptureDisplay(display)
}
2026-03-05 00:04:26 -06:00
2026-04-03 13:24:49 -05:00
func displayCount() int {
return screenshot.NumActiveDisplays()
}