Fix wrong origin offset when using wxRenderer with wxGCDC (PR #25967)

26 views
Skip to first unread message

VZ

unread,
Nov 11, 2025, 5:09:15 PM (9 days ago) Nov 11
to wx-...@googlegroups.com, Subscribed

ConvertToRECT() in wxRenderer code accounted for the origin shift twice when using wxGCDC since the changes of 4f9186f (Increase usable scrolling range in wxMSW by a factor of 10,000, 2022-04-30) which added Offset(dc.GetDeviceOrigin()) call to it as for wxGCDC this offset is already accounted for by MSWApplyGDIPlusTransform().

Fix this by replacing MSWApplyGDIPlusTransform() with a more generic MSWApplyWXTransform() which does the same thing as before for wxGCDC but applies the origin offset for other wxDCs. This ensures that this offset is properly accounted for in both cases.

Closes #25966.


You can view, comment on, or merge this pull request online at:

  https://github.com/wxWidgets/wxWidgets/pull/25967

Commit Summary

  • 88f900b Fix wrong origin offset when using wxRenderer with wxGCDC

File Changes

(6 files)

Patch Links:


Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: <wxWidgets/wxWidgets/pull/25967@github.com>

VZ

unread,
Nov 16, 2025, 12:40:14 PM (4 days ago) Nov 16
to wx-...@googlegroups.com, Subscribed
vadz left a comment (wxWidgets/wxWidgets#25967)

Merged in the commit above.


Reply to this email directly, view it on GitHub, or unsubscribe.

You are receiving this because you are subscribed to this thread.Message ID: <wxWidgets/wxWidgets/pull/25967/c3539018165@github.com>

VZ

unread,
Nov 16, 2025, 12:40:14 PM (4 days ago) Nov 16
to wx-...@googlegroups.com, Subscribed

Closed #25967.


Reply to this email directly, view it on GitHub, or unsubscribe.

You are receiving this because you are subscribed to this thread.Message ID: <wxWidgets/wxWidgets/pull/25967/issue_event/20973232805@github.com>

Reply all
Reply to author
Forward
0 new messages