Files
LCUI/examples
Liu 3270d8f34f fix(examples): make the fabric demo DPI-aware and fit the window
Run the simulation in a fixed 800x600 world and map it into the widget with an object-fit: contain viewport, so rendering and mouse hit testing share one transform. Derive the draw scale from the canvas buffer and content box because the global scale read in the timer callback does not match the buffer DPI. Let the canvas fill the window instead of a fixed size and keep the fabric world unchanged on resize.
2026-11-22 20:11:23 +08:00
..
2025-04-02 23:07:37 +08:00
2025-04-02 23:07:37 +08:00
2025-04-02 23:07:37 +08:00
2025-04-02 23:07:37 +08:00