MCPcopy Create free account
hub / github.com/OpenImageDebugger/OpenImageDebugger / sync_canvas_size

Function sync_canvas_size

src/platform/display_env.cpp:44–47  ·  view source on GitHub ↗

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).

Source from the content-addressed store, hash-verified

42// (unlike the non-native embedding, where the canvas lives inside a host
43// page element).
44void 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
49std::optional<float> refresh_display_scale(float /*current*/) {
50 return std::nullopt;

Callers 1

begin_frameMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected