[wxWidgets/wxWidgets] 802e31: Use wxPaintDC when drawing wxSpinButton in dark mode

0 views
Skip to first unread message

VZ

unread,
Feb 20, 2026, 9:28:58 AM (2 days ago) Feb 20
to wx-co...@googlegroups.com
Branch: refs/heads/master
Home: https://github.com/wxWidgets/wxWidgets
Commit: 802e3109d4c8a9fb67911da3c1ebf2150a9cd2b4
https://github.com/wxWidgets/wxWidgets/commit/802e3109d4c8a9fb67911da3c1ebf2150a9cd2b4
Author: Vadim Zeitlin <va...@wxwidgets.org>
Date: 2026-02-18 (Wed, 18 Feb 2026)

Changed paths:
M src/msw/spinbutt.cpp

Log Message:
-----------
Use wxPaintDC when drawing wxSpinButton in dark mode

Using Win32 API directly resulted in wxWindow code still forwarding
WM_PAINT to the default updown control window proc which repainted it
using light mode colours, as the code in wxWindow supposes that the
window was not really painted if wxPaintDC wasn't created.

Work around this by just creating it here.

Closes #26198.


Commit: 446fc382232e8c4c44cb0685ceec05c2ff6d2c8c
https://github.com/wxWidgets/wxWidgets/commit/446fc382232e8c4c44cb0685ceec05c2ff6d2c8c
Author: Vadim Zeitlin <va...@wxwidgets.org>
Date: 2026-02-18 (Wed, 18 Feb 2026)

Changed paths:
M src/msw/spinbutt.cpp

Log Message:
-----------
Don't bother erasing wxSpinButton background in dark mode

This is unnecessary and would just result in flicker.

Note that we prefer to define a custom wxEVT_ERASE_BACKGROUND handler
checking whether dark mode is active to just setting background style to
wxBG_STYLE_PAINT because this also works correctly when dark mode is
turned on or off while the application is running.


Commit: 485d3cb76bae8c91e1bd420b1314c9951bdd1622
https://github.com/wxWidgets/wxWidgets/commit/485d3cb76bae8c91e1bd420b1314c9951bdd1622
Author: Vadim Zeitlin <va...@wxwidgets.org>
Date: 2026-02-20 (Fri, 20 Feb 2026)

Changed paths:
M src/msw/spinbutt.cpp

Log Message:
-----------
Merge branch 'msw-dark-spin'

Fix wxSpinButton appearance in wxMSW dark mode.

See #26203.


Commit: ed0abebb66ecd8ae11682c7b8313d61b44ade37a
https://github.com/wxWidgets/wxWidgets/commit/ed0abebb66ecd8ae11682c7b8313d61b44ade37a
Author: Carlo Bramini <carlo_...@users.sourceforge.net>
Date: 2026-02-20 (Fri, 20 Feb 2026)

Changed paths:
M src/common/cairo.cpp

Log Message:
-----------
Use correct name for Cairo DLL when using Cygwin

Closes #26207.


Commit: b0d50ffe916456dd0b5c6244d5dc178b35442a6c
https://github.com/wxWidgets/wxWidgets/commit/b0d50ffe916456dd0b5c6244d5dc178b35442a6c
Author: Vadim Zeitlin <va...@wxwidgets.org>
Date: 2026-02-20 (Fri, 20 Feb 2026)

Changed paths:
M include/wx/glcanvas.h
M include/wx/unix/private/glcanvas.h
M include/wx/unix/private/glegl.h
M include/wx/unix/private/glx11.h
M interface/wx/glcanvas.h
M samples/opengl/pyramid/oglpfuncs.cpp
M src/msw/glcanvas.cpp
M src/osx/cocoa/glcanvas.mm
M src/unix/glcanvas.cpp
M src/unix/glegl.cpp
M src/unix/glx11.cpp

Log Message:
-----------
Add wxGLContext::GetProcAddress()

Implement this function as a trivial wrapper for wglGetProcAddress(),
glXGetProcAddressARB() or eglGetProcAddress() depending on the platform
(currently not implemented for macOS).

Account for the known bug in some Windows OpenGL drivers by checking for
manifestly invalid return values and handling them as null.

Use the new function in wxGL code itself and in the pyramid sample.

Closes #9215.

Closes #26209.


Compare: https://github.com/wxWidgets/wxWidgets/compare/11e5cae93a57...b0d50ffe9164

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