starting to create a new file format

This commit is contained in:
betzalel
2017-08-24 14:33:53 +03:00
parent e06ad806db
commit 7852f11ceb
6 changed files with 33 additions and 13 deletions

View File

@@ -116,9 +116,9 @@ func (c *ClientConn) Read(bytes []byte) (n int, err error) {
return c.conn.Read(bytes)
}
func (c *ClientConn) CurrentColorMap() *common.ColorMap {
return &c.ColorMap
}
// func (c *ClientConn) CurrentColorMap() *common.ColorMap {
// return &c.ColorMap
// }
// CutText tells the server that the client has new text in its cut buffer.
// The text string MUST only contain Latin-1 characters. This encoding

View File

@@ -175,9 +175,9 @@ func (m *MsgSetColorMapEntries) Read(c common.IClientConn, r *common.RfbReadHelp
return nil, err
}
}
cmap := c.CurrentColorMap()
// Update the connection's color map
cmap[result.FirstColor+i] = *color
// cmap := c.CurrentColorMap()
// // Update the connection's color map
// cmap[result.FirstColor+i] = *color
}
r.SendMessageEnd(common.ServerMessageType(m.Type()))
return &result, nil