cleaning up

This commit is contained in:
amit bezalel
2018-01-22 06:54:38 +02:00
parent c2ec0e67ca
commit 1ce97d02eb
2 changed files with 3 additions and 3 deletions

View File

@@ -7,7 +7,7 @@ After searching the web for an vnc client in golang which is not a toy & support
* CopyRect
* Raw
* RRE
* ZRLE [TBD - coming soon]
* ZRLE [**TBD - coming soon**]
* Rich-cursor pseudo
* Desktop Size Pseudo
* Cursor pos Pseudo

View File

@@ -194,7 +194,7 @@ func (enc *TightEncoding) Read(c Conn, rect *Rectangle) error {
//logger.Debugf("afterSHL:%d", compType)
switch compType {
case TightCompressionFill:
logger.Infof("--TIGHT_FILL: reading fill size=%d,counter=%d", bytesPixel, counter)
logger.Debugf("--TIGHT_FILL: reading fill size=%d,counter=%d", bytesPixel, counter)
//read color
rectColor, err := getTightColor(c, &pixelFmt)
@@ -206,7 +206,7 @@ func (enc *TightEncoding) Read(c Conn, rect *Rectangle) error {
//c1 := color.RGBAModel.Convert(rectColor).(color.RGBA)
dst := (enc.Image).(*image.RGBA) // enc.Image.(*image.RGBA)
myRect := MakeRectFromVncRect(rect)
logger.Infof("--TIGHT_FILL: fill rect=%v,color=%v", myRect, rectColor)
logger.Debugf("--TIGHT_FILL: fill rect=%v,color=%v", myRect, rectColor)
FillRect(dst, &myRect, rectColor)
if bytesPixel != 3 {