revert back to standard pixelflut api

fixed in shoreline
This commit is contained in:
Norwin Roosen 2021-01-02 15:53:07 +01:00
parent 0700f6c11b
commit e9fc8e6c48
No known key found for this signature in database
GPG Key ID: 24BC059DE24C43A3
1 changed files with 2 additions and 3 deletions

View File

@ -65,9 +65,8 @@ func readPixels(target *image.NRGBA, conn net.Conn, stop chan bool) {
log.Fatal(err)
}
// parse response ("PX <x> <y> <rrggbbaa>\n")
// NOTE: shoreline sends alpha, pixelnuke does not!
colorStart := len(res) - 9
// parse response ("PX <x> <y> <rrggbb>")
colorStart := len(res) - 7
x, y := parseXY(res[3:colorStart])
hex.Decode(col, res[colorStart:len(res)-1])