| 391 | } |
| 392 | |
| 393 | bool setSizeFromHost(uint32_t width, uint32_t height) |
| 394 | { |
| 395 | if (UIExporter* const ui = fUI.get()) |
| 396 | { |
| 397 | #ifdef DISTRHO_OS_MAC |
| 398 | const double scaleFactor = ui->getScaleFactor(); |
| 399 | width *= scaleFactor; |
| 400 | height *= scaleFactor; |
| 401 | #endif |
| 402 | ui->setWindowSizeFromHost(width, height); |
| 403 | return true; |
| 404 | } |
| 405 | |
| 406 | return false; |
| 407 | } |
| 408 | |
| 409 | bool setParent(const clap_window_t* const window) |
| 410 | { |
no test coverage detected