MCPcopy Create free account
hub / github.com/StereoKit/StereoKit / platform_win_resize

Function platform_win_resize

StereoKitC/platforms/linux.cpp:217–227  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

215///////////////////////////////////////////
216
217void platform_win_resize(platform_win_t window_id, int32_t width, int32_t height) {
218 window_t* win = &linux_windows[window_id];
219
220 width = maxi(1, width);
221 height = maxi(1, height);
222
223 if (win->has_swapchain == false || (width == win->swapchain.width && height == win->swapchain.height))
224 return;
225
226 skg_swapchain_resize(&win->swapchain, width, height);
227}
228
229///////////////////////////////////////////
230

Callers 1

platform_check_eventsFunction · 0.70

Calls 2

maxiFunction · 0.85
skg_swapchain_resizeFunction · 0.85

Tested by

no test coverage detected