mirror of
https://github.com/weyne85/rustdesk.git
synced 2025-10-29 17:00:05 +00:00
Differentiate stride align between encoding and decoding
Signed-off-by: fufesou <shuanglongchen@yeah.net>
This commit is contained in:
@@ -42,9 +42,9 @@ pub const SYNC_PEER_INFO_DISPLAYS: i32 = 1;
|
||||
#[cfg(all(target_os = "macos", feature = "flutter_texture_render"))]
|
||||
// https://developer.apple.com/forums/thread/712709
|
||||
// Memory alignment should be multiple of 64.
|
||||
pub const STRIDE_ALIGN: usize = 64;
|
||||
pub const STRIDE_ALIGN_RGBA_OUTPUT: usize = 64;
|
||||
#[cfg(not(all(target_os = "macos", feature = "flutter_texture_render")))]
|
||||
pub const STRIDE_ALIGN: usize = 1;
|
||||
pub const STRIDE_ALIGN_RGBA_OUTPUT: usize = 1;
|
||||
|
||||
// the executable name of the portable version
|
||||
pub const PORTABLE_APPNAME_RUNTIME_ENV_KEY: &str = "RUSTDESK_APPNAME";
|
||||
|
||||
Reference in New Issue
Block a user