Skip to content
This repository was archived by the owner on Jul 22, 2024. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion server_messages.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,12 @@ func (*FramebufferUpdateMessage) Read(c *ClientConn, r io.Reader) (ServerMessage
}

// We must always support the raw encoding
// But only add the handler if it's missing, allowing custom implementation
// to be specified with ClientConn.SetEncodings()
rawEnc := new(RawEncoding)
encMap[rawEnc.Type()] = rawEnc
if _, found := encMap[rawEnc.Type()]; !found {
encMap[rawEnc.Type()] = rawEnc
}

rects := make([]Rectangle, numRects)
for i := uint16(0); i < numRects; i++ {
Expand Down