| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| [(x0, y0, x1, y0), (x1, y0, x1, y1), | ||
| (x0, y0, x0, y1), (x0, y1, x1, y1)], | ||
| wx.Pen('BLACK', 1, wx.PENSTYLE_SHORT_DASH)) | ||
| x0, y0, x1, y1 = map(round, self._rubberband_rect) |
There was a problem hiding this comment.
Earlier it was possible that the left and bottom bounds could be one pixel off as int truncates. Using round seems to improve the situation, at least based on practical tests.
Sorry, something went wrong.
|
I manually tested tk. |
Sorry, something went wrong.
…985-on-v3.6.x Backport PR #23985 on branch v3.6.x (Improve rubberband rendering in wx and tk)
| Back | FazBrowse Home | New Git URL |
PR Summary
Closes #23969 (as there is a separate OSX issue #23777)
Draw a solid white rectangle and then add a dashed black rectangle so that it works on both light and dark backgrounds. For the tk backend it messes up the deprecated lastrect as bit since it only can contain one of the two rectangles. Not sure what lastrect is used for. If it is only to get the position it should be OK, but if it is to possibly modify the rectangle it may not work.
No obvious way to test it in the CI.
PR Checklist
Tests and Styling
Documentation