mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-09-21 09:05:10 -07:00
cn.svg and ss.svg defined their star polygons with coordinates around plus/minus 5e5 compensated by tiny scale transforms. Qt drops shapes whose device space bounds exceed its rasterizer coordinate limit, so both flags silently lost their stars when rendered wider than roughly 76px. That threshold was always exceeded because loadSvg with expandOnly renders at the declared 640x480 native size before scaling down to the icon size. Fold the scale transforms into the polygon coordinates so the geometry is unchanged while bounds stay small at every render size. Also cap expandOnly and usericon render canvases at four times the requested size to bound memory use and keep pathological theme svgs away from the rasterizer limit. Took 8 minutes Took 57 seconds Took 3 minutes Co-authored-by: Lukas Brübach <Bruebach.Lukas@bdosecurity.de> |
||
|---|---|---|
| .. | ||
| backgrounds | ||
| config | ||
| counters | ||
| countries | ||
| help | ||
| icons | ||
| phases | ||
| replay | ||
| tips | ||
| usericons | ||
| appicon.icns | ||
| appicon.ico | ||
| cardback.svg | ||
| cockatrice-original.svg | ||
| cockatrice.png | ||
| cockatrice.svg | ||
| hand.svg | ||
| hr.jpg | ||