()
| 157 | } |
| 158 | |
| 159 | pub fn refresh_size() { |
| 160 | let mut size = SCREEN_SIZE.lock().unwrap(); |
| 161 | *size = get_size().unwrap_or_default(); |
| 162 | } |
| 163 | |
| 164 | // Big android screen size will be shrinked, to improve performance when screen-capturing and encoding |
| 165 | // e.g 2280x1080 size will be set to 1140x540, and `scale` is 2 |
nothing calls this directly
no test coverage detected