pub unsafe extern "C" fn MaaControllerGetResolution(
ctrl: *const MaaController,
width: *mut i32,
height: *mut i32,
) -> MaaBoolExpand description
@brief Get the raw (unscaled) device resolution.
@param ctrl The controller handle. @param[out] width Output parameter for the raw width. @param[out] height Output parameter for the raw height. @return true if the resolution is available, false otherwise (e.g., not connected or no screenshot taken yet).
@note This returns the actual device screen resolution before any scaling. The screenshot obtained via MaaControllerCachedImage is scaled according to the screenshot target size settings, so its dimensions may differ from this raw resolution. @see MaaControllerCachedImage, MaaControllerPostScreencap