cursor utils changed to generic CreatePNGImage.

This commit is contained in:
Miroslav Šedivý
2021-02-25 14:15:18 +01:00
parent 8f142e4b91
commit d2eda6f25f
4 changed files with 43 additions and 38 deletions

View File

@ -55,7 +55,7 @@ func (peer *WebRTCPeerCtx) SendCursorImage(cur *types.CursorImage) error {
return fmt.Errorf("no data channel")
}
img, err := utils.GetCursorImage(cur)
img, err := utils.CreatePNGImage(cur.Image)
if err != nil {
return err
}