-
Notifications
You must be signed in to change notification settings - Fork 11
try our own tile snapping #51
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
Referring issue libvips/build-win64-mxe#77 |
|
It should be 1.0 / scale, oops. It's working on linux now with hardware desktop scaling, including fractional scaling! Edge tiles are not being snapped to image edges, so you get annoying strips of background appearing around the sides if the image is smaller than the window. I'm not sure how to fix that. |
|
I made a test release of this branch to make builds for other platforms simpler: https://github.com/jcupitt/vipsdisp/releases/tag/v4.1.0-tile-snap There's a win binary on that page. |
Ah of course, edge tiles ARE being snapped to image edges, it's the rendering of the background that isn't. I'll snap that as well. |
|
There's also a slight "jelly" effect if you load a large image, select 1:1, and pan sideways by holding a cursor key. Maybe rendering to the display hardware pixel size would fix this too. |
but the checkerboard PNG still fails to render correctly
|
I scaled tiles quickly, but I don't get 1:1 image pixels to display pixels. Maybe |
|
I moved the high-dpi experiment to another branch: https://github.com/jcupitt/vipsdisp/tree/add-high-dpi I'll merge this, it's much better than the simple +1 we had before. |


Experiment with our own tile snapping.
Seem to work on linux, needs testing elsewhere, ep. on win with non-100% desktop scaling.