CMake: Use canonicalized library names for plugins Make the custom renderer library a plugin so it gets a canonicalized filename, as expected by wxRendererNative::Load(). Make the renderer sample depend on the custom renderer library. Fixes #26787
Adjust wxRendererGeneric::GetCollapseButtonSize to DPI
Reset brush and text colour in custom renderer
Make renderer sample window size DPI aware Increase its height so the content fits at 150% scaling.
Fix debug suffix in CanonicalizePluginName for MSVC libraries By default, __WXDEBUG__ is also defined for Release builds. So the 'd' suffix is always added. MSVC builds add 'd' to the filename when the Debug-CRT is used, it is independent of __WXDEBUG__. As a result, release builds try to load the debug library, and the different CRT causes crashes. Fix by checking if NDEBUG is not defined by the compiler/CMake and use this to create the canonicalized name. Also add support for libraries built with the clang compiler.
Use wxSizerFlags and DPI-independent borders in samples This is an LLM-assisted change as doing it by hand turned out to be too time-consuming and not worth spending time on it. See #24755. Co-Authored-By: Claude Sonnet 5 <nor...@anthropic.com>
Use wxSizerFlags::HorzBorder() and DoubleHorzBorder() This is more concise and clear than `wxLEFT | wxRIGHT`. Co-authored-by: Cătălin Răceanu <cata...@users.noreply.github.com>
Remove incorrectly added Expand() calls This was wrongly added in 173f01c980 (Use wxSizerFlags and DPI-independent borders in samples, 2026-08-16) Co-authored-by: Cătălin Răceanu <cata...@users.noreply.github.com>
Remove commented out wxGROW which made no sense any more This is irrelevant now that flags are not used any longer here. Co-authored-by: Cătălin Răceanu <cata...@users.noreply.github.com>
Simplify code adding spacers to the sizers in samples Don't use spacers with borders, just combine border and spacer size. Also use AddStretchSpacer() instead of growable spacers. Co-authored-by: Cătălin Răceanu <cata...@users.noreply.github.com>
Don't use default value of proportion with AddStretchSpacer() This is useless, so just remove it.
Replace remaining 4px borders with standard ones in the samples The standard border size is 5 or 6 pixels which is not that different from 4 and it's not worth specifying the size of the border explicitly, this just distracts from the rest of the code which the samples are supposed to demonstrate. Moreover, many borders of size 4 have been already replaced with ones of standard size in the grandparent commit, so get rid of all the rest of them too.
Convert a remaining wxSizer::Add() to use wxSizerFlags This was one was accidentally forgotten by the commit which changed all the other ones.
Fix memory leak in GTK animation control Use wxGtkError to fix missing g_error_free calls. Closes #26875.
Merge branch 'custom-renderer' of github.com:MaartenBent/wxWidgets CMake: Use canonicalized library names for plugins. See #26826.
Load WebKit extension from the executable directory This is where the extension is found when built with CMake. Closes #26854.
Don't load WebKit extension from "lib" subdirectory This seems unnecessary as it should be never found there. See #26854.
Fix using wxPG_FILE_SHOW_FULL_PATH in wxPropertyGrid This legacy flag value was mapped to a wrong flag and so had no effect. Closes #25993.
Merge branch 'samples-sizerflags' Use wxSizerFlags and DPI-independent borders in samples. See #26853.
Fix MSW 1x1 rectangle drawing GDI Rectangle() draws no pixels for an outlined rectangle with a physical size of 1x1. Detect this case in wxMSWDCImpl::DoDrawRectangle() and draw the single device pixel using the current pen colour, matching DrawPoint() for this degenerate rectangle. Keep the documentation and drawing sample focused on the remaining native GDI limitation for other tiny outlined rectangles. Fixes #3096. Closes #26857.
—
View it on GitLab.
You're receiving this email because of your account on gitlab.com. Manage all notifications · Help