[Git][wxwidgets/wxwidgets][master] 15 commits: Improve quality of wxIMAGE_QUALITY_NORMAL when downscaling

1 view
Skip to first unread message

Vadim Zeitlin (@_VZ_)

unread,
Jul 15, 2024, 5:49:00 PM (12 days ago) Jul 15
to wx-commi...@googlegroups.com

Vadim Zeitlin pushed to branch master at wxWidgets / wxWidgets

Commits:

  • 46833eba
    by Vadim Zeitlin at 2024-07-08T00:24:30+02:00
    Improve quality of wxIMAGE_QUALITY_NORMAL when downscaling
    
    Use bilinear resampling in this case, as it produces better results,
    while still using nearest neighbour one for the upscaling case as it
    preserves sharp edges often found in icon images.
    
    See #24567.
    
  • 68fccf91
    by Vadim Zeitlin at 2024-07-08T00:24:30+02:00
    Improve quality of wxBitmapHelpers::Rescale() result
    
    After the previous commit, we can use wxIMAGE_QUALITY_NORMAL (which is
    the default, so we can just omit it entirely) to get good results both
    when up- and down-scaling images.
    
    Closes #24567.
    
  • 37efaacb
    by Václav Slavík at 2024-07-12T16:07:35+02:00
    Don't preselect popup menu items on macOS
    
    Native macOS context menus are shown slightly to the right of the mouse
    cursor so that no item is initially selected. Other platforms do the
    same thing.
    
    Adjust placement position manually to ensure the same behavior when
    popping up the menu manually.
    
  • f370e9e8
    by Václav Slavík at 2024-07-12T16:07:35+02:00
    Don't use menuForEvent: in wxDataViewCtrl on macOS
    
    Returning nil from menuForEvent: and then popping up a menu manually
    causes some kind of Cocoa internal state confusion if the right-click
    was performed by holding down Control and clicking (as is the Mac
    alternative to right-click). See https://github.com/vslavik/poedit/issues/849
    
    Implement wxEVT_DATAVIEW_ITEM_CONTEXT_MENU event using a handler for
    the regular wxEVT_CONTEXT_MENU event instead.
    
  • caffdd75
    by Václav Slavík at 2024-07-12T16:07:35+02:00
    Fix wxEVT_DATAVIEW_ITEM_CONTEXT_MENU item on macOS
    
    Pass the item under mouse cursor to wxDataViewEvent.
    
    Previously, first item of current selection was used instead. This was
    inconsistent with all other ports and contrary to user expectation: the
    UI was showing context menu on a different item from the one the action
    was taken on.
    
  • 0dd47025
    by ryancog at 2024-07-15T01:21:14+02:00
    Add GTKGetWin32Handle() to wxWindow when using GTK under Windows
    
    This function can be useful to call native APIs for the given wxWindow.
    
    Closes #24675.
    
  • 42ecd8be
    by Václav Slavík at 2024-07-15T18:43:57+02:00
    Set column for wxEVT_DATAVIEW_ITEM_CONTEXT_MENU in all ports
    
    Set wxDataViewEvent's column in both wxOSX and wxGTK implementations.
    Generic implementation already did it.
    
  • 36a088e4
    by ali kettab at 2024-07-15T19:45:54+01:00
    wxQt: Stop overriding wxWindow::GetHandle() in derived classes
    
    There is no need to do so because assigning to m_qtWindow is enough to return a
    valid handle.
    
    There is also no need to store an additional pointer just to preserve the actual
    type of the handle which can be obtained using a simple cast.
    
    There are no real changes other than simplifying and normalizing the code base.
    
  • 2ed8a702
    by ali kettab at 2024-07-15T19:45:54+01:00
    wxQt: Use "= default" for trivial default ctors
    
  • 4a565428
    by ali kettab at 2024-07-15T19:45:54+01:00
    wxQt: Add missing explicit keyword to some classes
    
  • e22f10f6
    by Vadim Zeitlin at 2024-07-15T23:12:50+02:00
    Merge branch 'image-better-rescale'
    
    Better image rescale quality when enlarging bitmaps.
    
    See #24685.
    
  • b63db5ca
    by Vadim Zeitlin at 2024-07-15T23:20:38+02:00
    Merge branch 'devel/dvc-context-fixes-macos' of https://github.com/vslavik/wxWidgets
    
    Fixes to context menus in wxDVC on macOS.
    
    See #24697.
    
  • 824bb5c0
    by Václav Slavík at 2024-07-15T23:22:11+02:00
    Update Bakefile instructions to mention Docker
    
    Closes #24702.
    
  • 8d6e156d
    by Vadim Zeitlin at 2024-07-15T23:29:20+02:00
    Merge branch 'qt-gethandle' of https://github.com/AliKet/wxWidgets
    
    wxQt: Stop overriding wxWindow::GetHandle() in derived classes.
    
    See #24691.
    
  • 2d7f1a8d
    by DietmarSchwertberger at 2024-07-15T23:30:44+02:00
    Implement pressed appearance for highlighted wxGrid headers
    
    Make the row/column headers appearance during drag-move more compatible
    with the new overlay selection.
    
    Closes #24655.
    

30 changed files:

The diff was not included because it is too large.


View it on GitLab.
You're receiving this email because of your account on gitlab.com. Manage all notifications · Help

Reply all
Reply to author
Forward
0 new messages