[Git][wxwidgets/wxwidgets][master] 9 commits: Don't crash in wxDisplay::GetModes() in wxOSX if there are none

1 view
Skip to first unread message

Vadim Zeitlin (@_VZ_)

unread,
Jan 17, 2026, 6:54:30 PMJan 17
to wx-commi...@googlegroups.com

Vadim Zeitlin pushed to branch master at wxWidgets / wxWidgets

Commits:

  • 972c874e
    by Vadim Zeitlin at 2026-01-08T14:14:53+01:00
    Don't crash in wxDisplay::GetModes() in wxOSX if there are none
    
    CFArrayGetCount() can't be called on a null array, so just return an
    empty array if no video modes could be retrieved, but don't crash.
    
    This happens at least when connecting via RDP and the crash could be
    easily reproduced in the display sample.
    
  • a17cf5d4
    by Vadim Zeitlin at 2026-01-08T14:14:53+01:00
    Add wxDisplay::GetRawPPI()
    
    Return resolution corresponding to the reported display physical size.
    
    Implement the new function for wxMSW, wxGTK and wxOSX.
    
    Show it in the "display" sample if it's different from the logical one.
    
  • eb64d55e
    by Vadim Zeitlin at 2026-01-15T18:33:23+01:00
    Document actual behaviour of wxPoint ctor from wxRealPoint
    
    The changes of 1f7a8a8 (Round, rather than truncate, in wxSize and
    wxPoint operations, 2018-03-06) have invalidated the documentation that
    had been previously added in 4c20f3d (Document that wxPoint(wxRealPoint)
    ctor truncates, not rounds., 2013-04-16) to document the old behaviour.
    
    Changing the behaviour once again doesn't seem to be desirable, but at
    least synchronize the documentation with it again.
    
    Closes #26099.
    
  • 7bf202cb
    by Vadim Zeitlin at 2026-01-15T18:35:55+01:00
    Explicitly make wxPoint copy ctor/assignment operator default
    
    Replace a comment with its restatement in code.
    
    No real changes.
    
  • 69ad6841
    by Vadim Zeitlin at 2026-01-15T18:40:38+01:00
    Add wxPoint::Truncate() and Round() static function
    
    Provide a simpler way of creating wxPoint from wxRealPoint by
    truncating, instead of rounding, its coordinates.
    
  • 13de999a
    by Vadim Zeitlin at 2026-01-16T13:45:52+01:00
    Fix typo in OnUnhandledException() documentation
    
    The name of this function itself was mistakenly used instead of
    OnExceptionInMainLoop() which was meant.
    
    Closes #26101.
    
  • 6228eaf4
    by Randalphwa at 2026-01-18T00:48:57+01:00
    Add support for using LunaSVG for SVG rasterization
    
    Optionally use LunaSVG library from the new submodule instead of
    NanoSVG.
    
    Closes #25902.
    
  • 19067dd4
    by Vadim Zeitlin at 2026-01-18T00:52:06+01:00
    Merge branch 'point-ctor-round-document'
    
    Document change in wxPoint(wxRealPoint) behaviour and provide
    alternatives.
    
    See #26100.
    
  • 6bf31c76
    by Vadim Zeitlin at 2026-01-18T00:53:07+01:00
    Merge branch 'display-raw-ppi'
    
    Add wxDisplay::GetRawPPI().
    
    See #26082.
    
    Closes #26080.
    

371 changed files:

The diff was not included because it is too large.
Reply all
Reply to author
Forward
0 new messages