[wxWidgets/wxWidgets] 37d156: Add annotations to WinMain() to avoid MSVC analyze...

0 views
Skip to first unread message

Blake-Madden

unread,
Apr 9, 2026, 8:23:53 PM (2 days ago) Apr 9
to wx-co...@googlegroups.com
Branch: refs/heads/master
Home: https://github.com/wxWidgets/wxWidgets
Commit: 37d15603c90d679fdb83ee655b09f959767c715d
https://github.com/wxWidgets/wxWidgets/commit/37d15603c90d679fdb83ee655b09f959767c715d
Author: Vadim Zeitlin <va...@wxwidgets.org>
Date: 2026-04-09 (Thu, 09 Apr 2026)

Changed paths:
M include/wx/msw/init.h

Log Message:
-----------
Add annotations to WinMain() to avoid MSVC analyzer warnings

Avoid MSVC code analysis warning

C28251: Inconsistent annotation for 'WinMain': this instance has no annotations.

by providing the same annotations as in the SDK header.

Closes #18529.

Closes #26322.


Commit: 21264e26ded7a7836e894f72389db0578a5e2e5b
https://github.com/wxWidgets/wxWidgets/commit/21264e26ded7a7836e894f72389db0578a5e2e5b
Author: Vadim Zeitlin <va...@wxwidgets.org>
Date: 2026-04-10 (Fri, 10 Apr 2026)

Changed paths:
M include/wx/withimages.h

Log Message:
-----------
Fix wxWithImages::GetImageLogicalSize() in wxGTK and wxOSX

Calling FromPhys() unconditionally on the image list size was wrong, we
want to use the logical size of the bitmap contained in wxImageList
which depends on its scale factor and is the same as its physical size
on platforms using DPI-independent pixels such as wxGTK and wxOSX.

This resulted in positioning the bitmaps incorrectly in wxListCtrl (and
almost surely wxTreeCtrl too).

Closes #26349.


Commit: b226c77ec2ed77d636afe892acc39b186f03c12a
https://github.com/wxWidgets/wxWidgets/commit/b226c77ec2ed77d636afe892acc39b186f03c12a
Author: Blake-Madden <66873089+B...@users.noreply.github.com>
Date: 2026-04-10 (Fri, 10 Apr 2026)

Changed paths:
M include/wx/dcsvg.h
M src/common/dcsvg.cpp

Log Message:
-----------
Use unique clip/gradient IDs across all wxSVGFileDC objects

This is useful if you need to combine output SVGs as it avoids ID
clashes.

Closes #26366.


Compare: https://github.com/wxWidgets/wxWidgets/compare/e508f6bc9dbe...b226c77ec2ed

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