disable buggy transparency
This commit is contained in:
parent
df8d542549
commit
dc3fe0d2d5
@ -4,11 +4,12 @@ import (
|
||||
"bufio"
|
||||
"bytes"
|
||||
"errors"
|
||||
"github.com/sirupsen/logrus"
|
||||
"image/color"
|
||||
"mapserver/vfs"
|
||||
"strconv"
|
||||
"strings"
|
||||
|
||||
"github.com/sirupsen/logrus"
|
||||
)
|
||||
|
||||
type ColorMapping struct {
|
||||
@ -65,10 +66,10 @@ func (m *ColorMapping) LoadBytes(buffer []byte) (int, error) {
|
||||
|
||||
if len(parts) >= 5 {
|
||||
//with alpha
|
||||
a, err = strconv.ParseInt(parts[4], 10, 32)
|
||||
if err != nil {
|
||||
return 0, err
|
||||
}
|
||||
//a, err = strconv.ParseInt(parts[4], 10, 32)
|
||||
//if err != nil {
|
||||
// return 0, err
|
||||
//}
|
||||
}
|
||||
|
||||
c := color.RGBA{uint8(r), uint8(g), uint8(b), uint8(a)}
|
||||
|
@ -21,8 +21,8 @@ func TestNewMapping(t *testing.T) {
|
||||
panic("no color")
|
||||
}
|
||||
|
||||
if c.A != 128 {
|
||||
panic("wrong alpha")
|
||||
}
|
||||
//if c.A != 128 {
|
||||
// panic("wrong alpha")
|
||||
//}
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user