Commit 0ec1915
committed
StaticImageRenderer: fix mip selection off-by-one, narrow draw lock (#177)
- SelectBitmapForScale: clamp max was _mipChain.Length-1, meaning the
finest mip level was never reachable and single-level chains always
fell back to the source bitmap; fix to _mipChain.Length
- Draw: narrow _mipChainLock to cover only SelectBitmapForScale; moving
DrawImage outside the lock avoids holding it across the D2D command
recording window
- KickOffMipGeneration: discard Task.Run result explicitly (_ =) to
make fire-and-forget intent clear to the compiler1 parent dd2288c commit 0ec1915
1 file changed
Lines changed: 5 additions & 6 deletions
Lines changed: 5 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
58 | | - | |
| 58 | + | |
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
| |||
142 | 142 | | |
143 | 143 | | |
144 | 144 | | |
| 145 | + | |
145 | 146 | | |
146 | | - | |
147 | | - | |
148 | | - | |
149 | | - | |
| 147 | + | |
| 148 | + | |
150 | 149 | | |
151 | 150 | | |
152 | 151 | | |
| |||
161 | 160 | | |
162 | 161 | | |
163 | 162 | | |
164 | | - | |
| 163 | + | |
165 | 164 | | |
166 | 165 | | |
167 | 166 | | |
| |||
0 commit comments