MCPcopy Create free account
hub / github.com/Recordscript/recordscript / refresh_size

Method refresh_size

libs/scrap/src/common/android.rs:159–162  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

get_sizeFunction · 0.85

Tested by

no test coverage detected