stupid warn position
This commit is contained in:
		
							parent
							
								
									a21194f0df
								
							
						
					
					
						commit
						63129582cc
					
				| @ -46,9 +46,6 @@ pub fn breakdown_callback() { | |||||||
| 
 | 
 | ||||||
| #[cfg(not(any(target_os = "android", target_os = "ios")))] | #[cfg(not(any(target_os = "android", target_os = "ios")))] | ||||||
| pub fn change_resolution(name: &str, width: usize, height: usize) -> ResultType<()> { | pub fn change_resolution(name: &str, width: usize, height: usize) -> ResultType<()> { | ||||||
|     hbb_common::log::warn!("Change resolution of '{}' to ({},{})", name, width, height); |  | ||||||
| 
 |  | ||||||
|     let cur_resolution = current_resolution(name)?; |  | ||||||
|     // For MacOS
 |     // For MacOS
 | ||||||
|     // to-do: Make sure the following comparison works. 
 |     // to-do: Make sure the following comparison works. 
 | ||||||
|     // For Linux
 |     // For Linux
 | ||||||
| @ -59,6 +56,8 @@ pub fn change_resolution(name: &str, width: usize, height: usize) -> ResultType< | |||||||
|     if cur_resolution.width as usize == width && cur_resolution.height as usize == height { |     if cur_resolution.width as usize == width && cur_resolution.height as usize == height { | ||||||
|         return Ok(()); |         return Ok(()); | ||||||
|     } |     } | ||||||
|  |     hbb_common::log::warn!("Change resolution of '{}' to ({},{})", name, width, height); | ||||||
|  |     let cur_resolution = current_resolution(name)?; | ||||||
|     change_resolution_directly(name, width, height) |     change_resolution_directly(name, width, height) | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user