Avoid using very large wxDC origin offsets with wxGenericListCtrl (PR #26614)

19 views
Skip to first unread message

paulcor

unread,
Jun 19, 2026, 3:46:43 PM (4 days ago) Jun 19
to wx-...@googlegroups.com, Subscribed

Using the wxDC origin to implement scrolled drawing can require very large origin offsets, which can exceed Cairo coordinate limits (2^23), and therefore currently wxGTK3 limits as well. Managing the scroll offsets turns out to be pretty simple in this case, avoiding any coordinate limitations.
See #25365


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

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

Commit Summary

  • 1ece0fc Avoid using very large wxDC origin offsets with wxGenericListCtrl

File Changes

(2 files)

Patch Links:


Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS and Android. Download it today!
You are receiving this because you are subscribed to this thread.Message ID: <wxWidgets/wxWidgets/pull/26614@github.com>

VZ

unread,
Jun 19, 2026, 8:58:53 PM (4 days ago) Jun 19
to wx-...@googlegroups.com, Subscribed

@vadz commented on this pull request.

Thanks! This is good and useful, as it solves a real problem, but I still wonder if we could do this inside wxDC itself, i.e. handle the offset ourselves instead of relying on Cairo for this?


Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS and Android. Download it today!

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

paulcor

unread,
Jun 20, 2026, 3:46:00 AM (4 days ago) Jun 20
to wx-...@googlegroups.com, Subscribed
paulcor left a comment (wxWidgets/wxWidgets#26614)

but I still wonder if we could do this inside wxDC itself

It looks pretty unappealing to me. I think we would have to do the whole matrix transform ourselves for every point and size in every function in wxGCDC.


Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS and Android. Download it today!

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

VZ

unread,
Jun 20, 2026, 7:00:19 AM (4 days ago) Jun 20
to wx-...@googlegroups.com, Subscribed
vadz left a comment (wxWidgets/wxWidgets#26614)

but I still wonder if we could do this inside wxDC itself

It looks pretty unappealing to me. I think we would have to do the whole matrix transform ourselves for every point and size in every function in wxGCDC.

Yes, true. It would, however, be simple to do it if the transformation is restricted to the origin shift (well, maybe axis scaling could be taken into account as well). This would still require modifying all the functions, but it's such an important use case (because this bug affects not just this control, but probably wxGrid, wxDVC, wxVListBox as well) that it might still be worth doing it.


Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS and Android. Download it today!

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

paulcor

unread,
Jun 20, 2026, 11:12:15 AM (4 days ago) Jun 20
to wx-...@googlegroups.com, Subscribed
paulcor left a comment (wxWidgets/wxWidgets#26614)

Well, regardless of whether it would be terrible or merely awful, I don't think a wxGCDC solution is going to happen before 3.3.3.


Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS and Android. Download it today!

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

VZ

unread,
Jun 20, 2026, 12:16:09 PM (4 days ago) Jun 20
to wx-...@googlegroups.com, Subscribed
vadz left a comment (wxWidgets/wxWidgets#26614)

Sure, this should be merged to fix the problem. But I don't know if it's more or less awful to do the same thing in all the other affected classes (which still wouldn't fix it in the user code) or do it once in wxDC.


Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS and Android. Download it today!

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

paulcor

unread,
Jun 20, 2026, 1:48:30 PM (3 days ago) Jun 20
to wx-...@googlegroups.com, Subscribed

Merged #26614 into master.


Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS and Android. Download it today!

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

Reply all
Reply to author
Forward
0 new messages