add more supported encodings

Signed-off-by: Vasiliy Tolstov <v.tolstov@selfip.ru>
This commit is contained in:
Василий Толстов 2017-06-30 00:39:52 +03:00
parent a823255675
commit 839fadfd3e

View File

@ -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)
}