mirror of
https://github.com/rustdesk/rustdesk.git
synced 2026-04-15 15:11:30 +03:00
fix the bottom of FFmpeg vram qsv encoding being cropped (#8191)
Signed-off-by: 21pages <pages21@163.com>
This commit is contained in:
@@ -1737,7 +1737,10 @@ class PredefinedCursor {
|
||||
_image?.dispose();
|
||||
_image = await img.decodeImageFromPixels(
|
||||
data, defaultImg.width, defaultImg.height, ui.PixelFormat.rgba8888);
|
||||
|
||||
if (_image == null) {
|
||||
print("decodeImageFromPixels failed, pre-defined cursor $id");
|
||||
return;
|
||||
}
|
||||
double scale = 1.0;
|
||||
if (isWindows) {
|
||||
data = _image2!.getBytes(order: img2.ChannelOrder.bgra);
|
||||
@@ -2104,7 +2107,7 @@ class CursorModel with ChangeNotifier {
|
||||
_x = -10000;
|
||||
_x = -10000;
|
||||
_image = null;
|
||||
_images.clear();
|
||||
disposeImages();
|
||||
|
||||
_clearCache();
|
||||
_cache = null;
|
||||
|
||||
Reference in New Issue
Block a user