Fix wxMSW build errors when wxUSE_REGKEY=0
change wxUSE_CONFIG_NATIVE setting logic in cmake and configure
Add aborts when wxUSE_REGKEY=0
Fix build of sample when wxUSE_REGKEY=0
Add wxUSE_MIMETYPE guard to samples
Build fixes when wxUSE_INTL=0
Fix sample builds for wxUSE_INTL=0
Remove unused code for wxCAIRO_SCALE==0 in wxGTK The code for wxCAIRO_SCALE==1 was used since eaeb99858d (Use cairo_scale() for scaling to full printing resolution[...], 2008-04-30) and it doesn't seem useful to keep the fallback/original version any longer. This simplifies the code, allows to get rid of m_PS2DEV and m_DEV2PS members of wxGtkPrinterDCImpl (as they are always 1 now) and will facilitate the upcoming changes.
Remove unnecessary [XY]LOG2DEV and DEV2LOG definitions Don't confuse things even more by defining macros or functions that do exactly the same thing as LogicalToDevice[XY] and DeviceToLogical[XY] member functions of wxDCImpl. This is just completely unnecessary, simply use the functions themselves directly instead. Note that there are still definitions of such macros in wxMSWDCImpl and wxPostScriptDCImpl code, but they actually do something different and so can't be just replaced with the function calls. No real changes.
Reimplement wxDC X/Y transformations in terms of wxPoint/wxSize
Both DeviceToLogical{X,Y}() and DeviceToLogical() taking wxPoint were
virtual, with the latter implemented in terms of the former by default,
which meant that overriding only that function, but not the ones taking
X/Y coordinates individually, could result in inconsistent behaviour,
which is exactly what happened in wxMSW.
Make it impossible for this to happen by only allowing to override the
functions taking wxPoint (or wxSize for "relative" variant) and
reimplementing the functions working with individual components in terms
of the virtual functions.
The same goes for LogicalToDevice() and "Rel" variants.
As an important side effect, this fixes a bug in wxDC::StretchBlit() in
wxMSW when using RTL layout as the code there used LogicalToDevice{X,Y}
functions that didn't return the correct values before this commit.
Update the tests to not test for the wrong behaviour of per-coordinate
translation functions now that they behave correctly. Also remove the
tests checking that per-coordinate translation doesn't work when the
transformation matrix includes a rotational component.
Update the documentation to emphasize that converting both coordinates
at once is preferred.
See #19344, #26266.
Generalize Wine workaround to TransformedWithMatrixAndStd() too Previously this was only needed in TransformedWithMatrixAndStdEx() which verified that conversion actually worked, but not in the non-Ex version using individual coordinates as it only verified that the conversions failed, which they also did under Wine. But now that they should work (and do, under native Windows), we need the same workaround there as well. Also make sure that we output the warning message about the workaround not being needed any longer only once and only if it's really not needed (if it's used for some values, we still have to keep it, even if it's not used for the other ones).
Fix crash with wxGLCanvas using EGL inside wxNotebook EGL implementation of wxGLCanvas requires its GTKHandleRealized() to be called in order to call wxGLCanvasEGL::OnRealized(), but this didn't happen when wxGLCanvas was used as a wxNotebook page because such pages are already realized by the time wxWindow::PostCreation() is called due to the wxNotebook-specific hack in its AddChildGTK() and PostCreation() skipped connecting to "realize" signal in this case. Fix this by always connecting to this signal, as the page can, and will, be unrealized and then re-realized later and the window must be notified when this happens. This commit is best viewed ignoring whitespace-only changes. Closes #26340. Co-authored-by: Vadim Zeitlin <va...@wxwidgets.org>
Rename "unrealize" to "gtk_window_unrealized_callback" No real changes, just use the name consistent with that of "realize" callback.
Make GTKHandleUnrealize() virtual too No real changes yet, but this member function should also be virtual if only for consistency with GTKHandleRealized(): if the latter can be overridden, it should be also to override the former.
Rename GTKHandleUnrealize() to GTKHandleUnrealized() Make the name consistent with GTKHandleRealized(). This is a private function which should never be called from outside the library, so it shouldn't be a problem to rename it.
Destroy EGL surface immediately when X11 window is unrealized This doesn't change much in the typical case when the window is either realized again immediately afterwards (as it happens with wxNotebook pages) or destroyed, but it seems tidier to do it just in case it remains in the unrealized state but still alive for some time. See #26340.
Initialize member variables in declarations in typetest sample No real changes, just reduce the number of "#if" checks and make the code a bit more readable.
Prefer to call wxGetTranslation() on wxString This is a minor change, but it allows the code to still compile when wxUSE_INTL=0 without adding an extra unnecessary copy when it is 1. No real changes.
Merge branch 'use-0-build-fixes' Fix build errors when wxUSE_REGKEY, wxUSE_INTL and/or wxUSE_MIMETYPE are set to 0. See #26332.
Fix wxDC::StretchBlit() for non-0 xsrc in RTL layout This fixes problems when using this function to paint a scrolled window. See #26266.
Merge branch 'dc-log-dev'
Ensure that wxDC::DeviceToLogical{X,Y}() and DeviceToLogical() etc are
always consistent.
See #26346.
Add wxSVGFileDC::Save() This function allows to check if the SVG file was written successfully. Closes #26347.
Update very outdated SVG support description in the documentation Say "most web browsers" instead of Netscape and don't mention Adobe any more. Also use HTTPS in the links. See #26347.
Don't impose arbitrary maximum length on picker controls text
This code was there ever since ec376c8fd9 (added
wx{Colour|File|Dir|Font}PickerCtrl (patch 1472329 by Francesco),
2006-05-31), but didn't make any sense because it should be possible to
enter arbitrarily long strings in these controls.
Additionally, the maximum length was increased for wxFilePickerCtrl
after creation which meant that that its initial contents was not shown
in it, but the same string could be shown later, which was even more
confusing.
Just stop imposing any length constraints.
See #7863.
Closes #26314.
Merge branch 'gtk-egl-notebook' Fix crash when using EGL-based wxGLCanvas in a wxNotebook and some related cleanup. See #26352.
—
View it on GitLab.
You're receiving this email because of your account on gitlab.com. Manage all notifications · Help