[wxWidgets/wxWidgets] e053d3: Rename OnDpiChanged() in wxAUI to OnDPIChanged() f...

0 views
Skip to first unread message

Javid Khan

unread,
Jun 2, 2026, 8:55:32 AM (9 days ago) Jun 2
to wx-co...@googlegroups.com
Branch: refs/heads/master
Home: https://github.com/wxWidgets/wxWidgets
Commit: e053d3840a9e9693b8a27751b56a125227f3e4dc
https://github.com/wxWidgets/wxWidgets/commit/e053d3840a9e9693b8a27751b56a125227f3e4dc
Author: Vadim Zeitlin <va...@wxwidgets.org>
Date: 2026-06-01 (Mon, 01 Jun 2026)

Changed paths:
M include/wx/aui/auibook.h
M src/aui/auibook.cpp

Log Message:
-----------
Rename OnDpiChanged() in wxAUI to OnDPIChanged() for consistency

All the other wxDPIChangedEvent handlers use the upper-case version, so
rename a couple which didn't to follow them.


Commit: d5c06250e5bea8270ba0edeb578dd119088577ed
https://github.com/wxWidgets/wxWidgets/commit/d5c06250e5bea8270ba0edeb578dd119088577ed
Author: Vadim Zeitlin <va...@wxwidgets.org>
Date: 2026-06-01 (Mon, 01 Jun 2026)

Changed paths:
M src/aui/auibar.cpp

Log Message:
-----------
Fix appearance of controls in wxAuiToolBar after DPI change

This was previously broken, e.g. the wxStaticText in the aui sample
didn't fit into the toolbar any more after increasing the scaling.


Commit: 22245eee138ef17547514c6eb48fe4aad6e1648a
https://github.com/wxWidgets/wxWidgets/commit/22245eee138ef17547514c6eb48fe4aad6e1648a
Author: Vadim Zeitlin <va...@wxwidgets.org>
Date: 2026-06-01 (Mon, 01 Jun 2026)

Changed paths:
M samples/aui/auidemo.cpp

Log Message:
-----------
Use more readable pane names in the AUI sample

This makes debugging simpler as panes can be identified more easily.


Commit: d32c574141c4b8cd2f7163a2d03ac97da582ea48
https://github.com/wxWidgets/wxWidgets/commit/d32c574141c4b8cd2f7163a2d03ac97da582ea48
Author: Vadim Zeitlin <va...@wxwidgets.org>
Date: 2026-06-01 (Mon, 01 Jun 2026)

Changed paths:
M include/wx/aui/framemanager.h
M src/aui/framemanager.cpp

Log Message:
-----------
Update AUI layout on DPI change

Scale the pane and dock sizes and positions to keep the same layout in
the new DPI.


Commit: b8a8f2e3ff043891c9a1c5b41742cd5d121d5bae
https://github.com/wxWidgets/wxWidgets/commit/b8a8f2e3ff043891c9a1c5b41742cd5d121d5bae
Author: Vadim Zeitlin <va...@wxwidgets.org>
Date: 2026-06-02 (Tue, 02 Jun 2026)

Changed paths:
M include/wx/propgrid/propgrid.h
M src/propgrid/propgrid.cpp

Log Message:
-----------
Factor out wxPropertyGrid::ReallocDoubleBufferIfNeeded()

No real changes, just extract the code (re)creating m_doubleBuffer into
its own function to allow for its reuse in the upcoming commit.


Commit: cda683d85bda0d018eff836488c671d1268c185f
https://github.com/wxWidgets/wxWidgets/commit/cda683d85bda0d018eff836488c671d1268c185f
Author: Vadim Zeitlin <va...@wxwidgets.org>
Date: 2026-06-02 (Tue, 02 Jun 2026)

Changed paths:
M src/propgrid/propgrid.cpp

Log Message:
-----------
Fix size of text in wxPropertyGrid after DPI change in wxMSW

Recreate the bitmap used for double buffering on DPI change to ensure
that it uses the correct scaling factor -- otherwise text was not scaled
correctly after a DPI change.

Closes #26490.


Commit: 0ce04fca498c76c01cc0e8855a454eab8a9daca6
https://github.com/wxWidgets/wxWidgets/commit/0ce04fca498c76c01cc0e8855a454eab8a9daca6
Author: Vadim Zeitlin <va...@wxwidgets.org>
Date: 2026-06-02 (Tue, 02 Jun 2026)

Changed paths:
M src/msw/nonownedwnd.cpp

Log Message:
-----------
Fix adjusting TLW size after DPI change in wxMSW

We changed the size proposed by Windows by the double of the needed
amount.

Call wxRect::Inflate() with one half of the needed change. This may
result in 1px being lost for odd sizes but this is probably not
noticeable in practice.


Commit: 5aba16a7ceff07b3381510f8138b7aef8f06ee85
https://github.com/wxWidgets/wxWidgets/commit/5aba16a7ceff07b3381510f8138b7aef8f06ee85
Author: Vadim Zeitlin <va...@wxwidgets.org>
Date: 2026-06-02 (Tue, 02 Jun 2026)

Changed paths:
M src/msw/nonownedwnd.cpp

Log Message:
-----------
Decrease the size of non-resizeable TLWs on DPI change

We avoid decreasing the size of the TLW on DPI change to preserve the
user-set size, but this logic doesn't apply to non-resizeable windows as
the user couldn't have changed their size, so do shrink them.

Closes #26485.


Commit: 42c12b2d8fae842b454a9af18f6c0539b3699b0f
https://github.com/wxWidgets/wxWidgets/commit/42c12b2d8fae842b454a9af18f6c0539b3699b0f
Author: Vadim Zeitlin <va...@wxwidgets.org>
Date: 2026-06-02 (Tue, 02 Jun 2026)

Changed paths:
M src/msw/gdiimage.cpp

Log Message:
-----------
Fix size of the icons loaded by wxICOResourceHandler

Changes of b45b02c227 (Fix loading of standard icons recently broken in
wxMSW, 2026-05-02) broke computation of the icon size which was left
empty for the non-scaled icons.

Fix this by always computing this size.

See #26370.


Commit: 7c4ec03107d351c6aff65c9356ee45b73b85d861
https://github.com/wxWidgets/wxWidgets/commit/7c4ec03107d351c6aff65c9356ee45b73b85d861
Author: Vadim Zeitlin <va...@wxwidgets.org>
Date: 2026-06-02 (Tue, 02 Jun 2026)

Changed paths:
M src/msw/utils.cpp

Log Message:
-----------
Avoid error messages from wxGetOsDescription() under Windows

The changes of 90880faafc (Output Windows 'feature update' version in
wxGetOsDescription(), 2026-06-01) could result in an error message being
logged if "DisplayVersion" value didn't exist in the registry.

Check for its existence before trying to read it to avoid this.

See #26544.


Commit: 09234b9ea38b5354332d325c0f16647ab633dc62
https://github.com/wxWidgets/wxWidgets/commit/09234b9ea38b5354332d325c0f16647ab633dc62
Author: Vadim Zeitlin <va...@wxwidgets.org>
Date: 2026-06-02 (Tue, 02 Jun 2026)

Changed paths:
M include/wx/aui/auibook.h
M include/wx/aui/framemanager.h
M samples/aui/auidemo.cpp
M src/aui/auibar.cpp
M src/aui/auibook.cpp
M src/aui/framemanager.cpp

Log Message:
-----------
Merge branch 'aui-dpi-change'

Improve handling of DPI changes in wxAUI.

Currently pane positions are scaled linearly, which may result in small
discrepancies between the initial layout at the given DPI and the layout
at the same DPI after a change from another value, but this is still
much better than not doing anything.

See #26075, #26546.


Commit: a935e63c408520ec391d720fa5b06189eca5604b
https://github.com/wxWidgets/wxWidgets/commit/a935e63c408520ec391d720fa5b06189eca5604b
Author: Vadim Zeitlin <va...@wxwidgets.org>
Date: 2026-06-02 (Tue, 02 Jun 2026)

Changed paths:
M include/wx/propgrid/propgrid.h
M src/propgrid/propgrid.cpp

Log Message:
-----------
Merge branch 'pg-dpi-change'

Fix text size in wxPropertyGrid after DPI change.

See #26549.


Commit: 3d245236f916f9dfad4589cf7bcabeb36b612b69
https://github.com/wxWidgets/wxWidgets/commit/3d245236f916f9dfad4589cf7bcabeb36b612b69
Author: Vadim Zeitlin <va...@wxwidgets.org>
Date: 2026-06-02 (Tue, 02 Jun 2026)

Changed paths:
M src/msw/nonownedwnd.cpp

Log Message:
-----------
Merge branch 'dpi-non-resizeable'

Improve TLW resizing on DPI change.

See #26550.


Commit: 4309276ceff156cba65dc537c643995ed11d9697
https://github.com/wxWidgets/wxWidgets/commit/4309276ceff156cba65dc537c643995ed11d9697
Author: dxbjavid <dxbj...@gmail.com>
Date: 2026-06-02 (Tue, 02 Jun 2026)

Changed paths:
M src/html/m_tables.cpp

Log Message:
-----------
Fix rowspan/colspan integer overflow in wxHtmlTableCell::AddCell()

AddCell() reads COLSPAN and ROWSPAN from the markup into ints with no
upper bound, then uses r + rowspan and c + colspan to grow the cell
table and to index ypos[] in Layout(). A value near INT_MAX, e.g. in the
second row, overflows the addition so the r + rowspan > m_NumRows growth
check is bypassed and Layout() writes past the end of ypos[].

Clamp colspan and rowspan to the limits from the HTML spec (1000 and
65534).

Closes #26554.


Compare: https://github.com/wxWidgets/wxWidgets/compare/daf6282a9c5e...4309276ceff1

To unsubscribe from these emails, change your notification settings at https://github.com/wxWidgets/wxWidgets/settings/notifications
Reply all
Reply to author
Forward
0 new messages