add more supported encodings
Signed-off-by: Vasiliy Tolstov <v.tolstov@selfip.ru>
This commit is contained in:
parent
a823255675
commit
839fadfd3e
6
image.go
6
image.go
@ -220,6 +220,12 @@ func (r *Rectangle) Read(c Conn) error {
|
||||
r.Enc = &TightPngEncoding{}
|
||||
case EncRaw:
|
||||
r.Enc = &RawEncoding{}
|
||||
case EncDesktopSizePseudo:
|
||||
r.Enc = &DesktopSizePseudoEncoding{}
|
||||
case EncDesktopNamePseudo:
|
||||
r.Enc = &DesktopNamePseudoEncoding{}
|
||||
case EncXCursorPseudo:
|
||||
r.Enc = &XCursorPseudoEncoding{}
|
||||
default:
|
||||
return fmt.Errorf("unsupported encoding %s", r.EncType)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user