Nabla icon indicating copy to clipboard operation
Nabla copied to clipboard

Update setWindowSize & other window manager functions to ignore callback

Open deprilula28 opened this issue 3 years ago • 0 comments

Description

Currently, when resizing the window using the API call (setWindowSize) calls the event callback, but the result is unused as it doesn't stop the resize; Then, the event callback is called again, potentially with a new size including window borders and other possible calculations from Windows.

The maximum size returned by the surface capabilities should be taken into account when recreating the swapchain, as is done in the sister PR.

Sister PR: https://github.com/Devsh-Graphics-Programming/Nabla-Examples-and-Tests/pull/19

Testing

Example 09 was tested to not log the resizes twice.

TODO list:

deprilula28 avatar Sep 20 '22 20:09 deprilula28