MCPcopy Create free account
hub / github.com/KhronosGroup/Vulkan-Tools / handle_surface_configure

Function handle_surface_configure

cube/cube.cpp:3435–3446  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3433}
3434
3435static void handle_surface_configure(void *data, xdg_surface *xdg_surface, uint32_t serial) {
3436 Demo &demo = *static_cast<Demo *>(data);
3437 xdg_surface_ack_configure(xdg_surface, serial);
3438 demo.xdg_surface_has_been_configured = true;
3439 if (demo.pending_width > 0) {
3440 demo.width = demo.pending_width;
3441 }
3442 if (demo.pending_height > 0) {
3443 demo.height = demo.pending_height;
3444 }
3445 demo.resize();
3446}
3447
3448static const xdg_surface_listener surface_listener = {handle_surface_configure};
3449

Callers

nothing calls this directly

Calls 1

resizeMethod · 0.80

Tested by

no test coverage detected