| 1100 | } |
| 1101 | |
| 1102 | void Console::commandResolution(socket_native_type /*fd*/, std::string_view args) |
| 1103 | { |
| 1104 | int policy; |
| 1105 | float width, height; |
| 1106 | std::stringstream stream; |
| 1107 | stream << args; |
| 1108 | stream >> width >> height >> policy; |
| 1109 | |
| 1110 | Scheduler* sched = Director::getInstance()->getScheduler(); |
| 1111 | sched->runOnAxmolThread([=]() { |
| 1112 | Director::getInstance()->getRenderView()->setDesignResolutionSize(width, height, |
| 1113 | static_cast<ResolutionPolicy>(policy)); |
| 1114 | }); |
| 1115 | } |
| 1116 | |
| 1117 | void Console::commandResolutionSubCommandEmpty(socket_native_type fd, std::string_view /*args*/) |
| 1118 | { |
nothing calls this directly
no test coverage detected