version-compatible original resolution
Signed-off-by: fufesou <shuanglongchen@yeah.net>
This commit is contained in:
		
							parent
							
								
									b6c402d2ca
								
							
						
					
					
						commit
						23784eddd3
					
				| @ -287,8 +287,10 @@ impl FlutterHandler { | |||||||
|             h.insert("width", d.width); |             h.insert("width", d.width); | ||||||
|             h.insert("height", d.height); |             h.insert("height", d.height); | ||||||
|             h.insert("cursor_embedded", if d.cursor_embedded { 1 } else { 0 }); |             h.insert("cursor_embedded", if d.cursor_embedded { 1 } else { 0 }); | ||||||
|             h.insert("original_width", d.original_resolution.width); |             if let Some(original_resolution) = d.original_resolution.as_ref() { | ||||||
|             h.insert("original_height", d.original_resolution.height); |                 h.insert("original_width", original_resolution.width); | ||||||
|  |                 h.insert("original_height", original_resolution.height); | ||||||
|  |             } | ||||||
|             msg_vec.push(h); |             msg_vec.push(h); | ||||||
|         } |         } | ||||||
|         serde_json::ser::to_string(&msg_vec).unwrap_or("".to_owned()) |         serde_json::ser::to_string(&msg_vec).unwrap_or("".to_owned()) | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user