MCPcopy Create free account
hub / github.com/MaaXYZ/MaaFramework / get_resolution

Method get_resolution

source/MaaFramework/Controller/ControllerAgent.cpp:228–237  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

226}
227
228bool ControllerAgent::get_resolution(int32_t& width, int32_t& height) const
229{
230 if (image_raw_width_ == 0 || image_raw_height_ == 0) {
231 return false;
232 }
233
234 width = image_raw_width_;
235 height = image_raw_height_;
236 return true;
237}
238
239json::object ControllerAgent::get_info() const
240{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected