mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-16 01:26:09 +00:00
The canvas rendered its art at the display's pixels per point whatever the canvas's size, so a canvas more device pixels across than egui's max_texture_side asked for a texture larger than the display supports. The tiled panes did the same, and Pixel Preview allowed regions of up to 16,384 document pixels. In canvas::panes::tests::tiled_documents_fit_their_panes_at_every_ui_scaling, the pass where a new UI zoom takes effect sizes the screen from the default 10,000-point viewport, and the test failed whenever the render worker finished that frame before the next pass. - The canvas and the tiled panes lower the frame's pixels per point when a side would pass max_texture_side, and draw the frame over the whole canvas at that lower resolution. - Pans, scrolls and scroll bar drags move the view by whole pixels of that frame, so a pan still copies the pixels it moved. - Pixel Preview shows the normal render when its region of document pixels is larger than max_texture_side. - Tests that drew a canvas wider than egui's default limit of 2,048 pixels now state the limit their display reports.