mirror of
https://github.com/rustdesk/rustdesk.git
synced 2026-09-19 02:41:10 +03:00
Preserve Windows cursor alpha during native image decoding
This commit is contained in:
@@ -69,6 +69,8 @@ void main() {
|
||||
(kPeerPlatformMacOS, '0', [64, 32, 16, 128]),
|
||||
(kPeerPlatformMacOS, '1', [64, 32, 16, 128]),
|
||||
(kPeerPlatformMacOS, '2', [64, 32, 16, 128]),
|
||||
(kPeerPlatformWindows, null, [64, 32, 16, 128]),
|
||||
(kPeerPlatformWindows, '0', [64, 32, 16, 128]),
|
||||
(kPeerPlatformLinux, '0', [32, 16, 8, 128]),
|
||||
]) {
|
||||
for (final dpr in [1.0, 2.0]) {
|
||||
@@ -119,6 +121,8 @@ Future<void> _checkCursor((String, String?, List<int>) testCase, double dpr,
|
||||
bytes: straight!.buffer,
|
||||
bytesOffset: straight.offsetInBytes,
|
||||
order: img.ChannelOrder.rgba));
|
||||
// Real sessions own FFI strongly throughout asynchronous cursor decoding.
|
||||
expect(cursor.parent.target, same(ffi));
|
||||
}
|
||||
|
||||
void _checkRegistration(Map<dynamic, dynamic> args, double dpr) {
|
||||
|
||||
Reference in New Issue
Block a user