Add wxGLCanvas::SetSwapInterval() and GetSwapInterval() Allow setting the swap interval value or not setting it at all instead of always forcing it to 0. The changes of 3dde6bdeb0 (Disable swap interval in GLX wxGLCanvas implementation too, 2023-12-25) are not always desirable, so allow to customize the behaviour. Implement this for Unix (GLX and EGL) backends for now and allow testing using these functions in the cube sample. See #24163, #24165.
Check for GLX_EXT_swap_control availability glXSwapIntervalEXT() might exist in the client library but not be actually supported by the driver, so check if it advertises the extension defining this function. Also don't query GLX_SWAP_INTERVAL_EXT if this extension is not available as it would generate an X error.
Fall back on GLX_MESA_swap_control if GLX_EXT_swap_control is NA Try using the older extension if we don't have the newer one.
Remove unused WXGLSwapBuffers() function This seems to have never been used in Cocoa wxOSX version and is definitely not used currently.
Implement support for wxGLCanvas swap interval in wxOSX Just use NSOpenGLCPSwapInterval parameter for this.
Implement support for wxGLCanvas swap interval in wxMSW Just call the corresponding WGL_EXT_swap_control extension functions if available.
Add support for requesting adaptive VSync to wxGLCanvas Mimic the low level OpenGL APIs by allowing to pass -1 to SetSwapInterval() to request adaptive VSync and implement this for GLX and WGL. Change return type of SetSwapInterval() to allow returning a value indicating that enabling adaptive VSync failed but standard VSync could still be set.
Call wxD2DContext::EnsureInitialized() only once It seems useless to call it again as it effectively does nothing after the first call (just reassigns the same value to m_cachedRenderTarget).
Rename wxD2DContext::m_cachedRenderTarget to just m_target Also use it instead of repeatedly calling GetRenderTarget() in EnsureInitialized(). No real changes.
Handle errors in wxD2DRenderer::CreateContext() better Don't assert and then crash if BindDC() call fails, just returns a null context pointer instead and let the application to deal with it. Closes #26052. Co-authored-by: Vadim Zeitlin <va...@wxwidgets.org>
Add move constructor to wxWindowDisabler class Will be needed when we add modal window support to wxFrame in the upcoming commits. i.e.: construct wxWindowDisabler objects directly in a std::stack<>.
Initialize wxFrameBase members in their declarations No real changes.
Add wxFrameBase::SetWindowModality() member function
Initialize wxPreviewFrame members in their declarations No real changes.
Re-define wxPreviewFrameModalityKind as an alias to wxFrameBase::ModalityKind and keep it to maintain backward compatibility.
Call the base class function to set the wxPreviewFrame modality
Fix printing sample compilation after recent changes
wxQt: Override wxFrameBase::SetWindowModality() Quoting the Qt documentation (QWidget::setEnabled()): Disabling a widget implicitly disables all its children. ... It it not possible to explicitly enable a child widget which is not a window while its parent widget remains disabled. This means implementing window modality using wxWindowDisabler(winToSkip) to make winToSkip behave like a modal window to the application, or as a modal window to its parent (by just disabling the parent window) WILL NOT WORK in Qt and this is by design. IOW, wxWindowDisabler always disables everything in wxQt.
Update zh_CN translation Closes #26175.
Merge branch 'gl-swap' Allow controlling VSync in wxGLCanvas. See #25449.
Merge branch 'd2d-better-error-handling' Improve error handling in D2D code. See #26169.
Merge branch 'frame_modality' of github.com:AliKet/wxWidgets Add window modality support to wxFrame. See #26147.
Allow running tests from MSVS in DLL configurations Create file tests/tests.props which adds the DLL build directory to MSVS PATH in <LocalDebuggerEnvironment> property and add the file to test.vcxproj and test_gui.vcxproj MSVC projects. See also eba106431a (Allow running samples from MSVS in DLL configurations, 2024-11-14). Closes #26171.
Document that wxApp::OnExit() should be called from overrides And update the samples to follow the advice in the documentation. Closes #26173.
—
View it on GitLab.
You're receiving this email because of your account on gitlab.com. Manage all notifications · Help