Commit a0803bb
committed
Prevent pattern from being downscaled below its original size #247
Clamp `xScale` and `yScale` to a minimum of `1` when rendering patterns, ensuring
the bitmap is never scaled below its native resolution. This avoids
distortion and visual artifacts caused by downscaling at very small pattern
scales while maintaining correct tiling and alignment.1 parent 8c47fff commit a0803bb
1 file changed
+4
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
289 | 289 | | |
290 | 290 | | |
291 | 291 | | |
292 | | - | |
293 | | - | |
| 292 | + | |
| 293 | + | |
294 | 294 | | |
295 | | - | |
296 | | - | |
297 | | - | |
298 | | - | |
| 295 | + | |
299 | 296 | | |
300 | 297 | | |
301 | 298 | | |
| |||
312 | 309 | | |
313 | 310 | | |
314 | 311 | | |
315 | | - | |
| 312 | + | |
316 | 313 | | |
317 | 314 | | |
318 | 315 | | |
| |||
0 commit comments