get dimension of default screen via FFI