Files
vectorcraft/crates
dotCooCoo b599942e21 Fix #7524: the canvas's frame fits the display's largest texture side
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.
2026-11-14 17:07:48 -08:00
..
…