No-op on native: the GLFW window is resized directly by the OS/window manager, so there is no separate container size for the canvas to track (unlike the non-native embedding, where the canvas lives inside a host page element).
| 42 | // (unlike the non-native embedding, where the canvas lives inside a host |
| 43 | // page element). |
| 44 | void sync_canvas_size(GLFWwindow* /*window*/) { |
| 45 | /* no-op on native: the OS/window manager resizes the GLFW window directly; |
| 46 | * see comment above */ |
| 47 | } |
| 48 | |
| 49 | std::optional<float> refresh_display_scale(float /*current*/) { |
| 50 | return std::nullopt; |