Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Close #853
Desktop Duplication 的文档记录了不同类型的光标的工作方式:DXGI_OUTDUPL_POINTER_SHAPE_TYPE
单色光标和彩色掩码光标均涉及到掩码操作,双线性插值对它们没有意义,但有些老游戏使用这两种光标却不使用掩码。在当前实现下,即使使用双线性插值,这些光标依然有锐利的边缘,这是因为从不应用掩码状态到应用掩码/透明状态是突变的。
双线性插值下的单色光标:
此 PR:
此 PR 将兼容的单色光标和彩色掩码光标转换为彩色光标。彩色光标的优势在于:
对于使用了掩码的光标不支持双线性插值,它们将始终使用最近邻插值。这样的光标非常少,且双线性插值对它们没有意义,比如最常见的有着反色区域的 I 形光标。