mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-12 21:56:24 +00:00
Preferences > User Interface > UI Scaling sets egui's zoom factor, and the canvas mapped one document point to one of the interface's points at 100%. A document point then covered UI Scaling times as many device pixels, so the art grew and shrank with the interface. The canvas now maps the document at the view's zoom divided by the UI zoom (View::screen_zoom, Xf::at). The rendered frame, the pointer, rulers, grids, Fit and Actual Size, pan, scroll, zoom and turn about a point, the Zoom tool's marquee, Pixel Preview's check, tiled panes, the Navigator's view box and the tools' tolerances use that mapping. The zoom value means the same at every UI Scaling, and the interface still follows UI Scaling. fit_zoom, zoom_about, rotate_about, pan_pixels and scroll_by take the UI zoom, and Xf::new is now test-only. Found while looking into a report by bortek about the art's size at 100%.