Cockatrice/cockatrice/resources
BruebachL 03229db0bd
Fix cn and ss flags losing stars and clamp svg render sizes (#7168)
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>
2026-08-23 20:13:14 +02:00
..
backgrounds [Placeholder images] Update color. (#6519) 2026-01-14 14:47:27 +01:00
config [DlgSettings] Refactor: split SettingsPage into separate files (#6899) 2026-05-18 01:59:02 -07:00
counters Added colored storm counter 2015-04-19 18:14:29 +02:00
countries Fix cn and ss flags losing stars and clamp svg render sizes (#7168) 2026-08-23 20:13:14 +02:00
help [Search] Fix OR usage in examples (#6628) 2026-02-24 01:34:23 +01:00
icons Add generic colorless mana symbol (#6873) 2026-05-17 19:48:48 +02:00
phases Reorganized images in subfolders 2015-06-15 14:37:19 +02:00
replay Reorganized images in subfolders 2015-06-15 14:37:19 +02:00
tips Add tip of the day for Expand Card View Window (#5666) 2025-02-28 11:29:09 -05:00
usericons Fix flipped svg for donator/judge/vip (#6400) 2025-12-06 14:09:55 +01:00
appicon.icns Update macOS Monterey app icon (#4805) 2023-08-06 17:46:03 -04:00
appicon.ico svg+png updates 2015-04-28 16:06:36 +02:00
cardback.svg Remove unused layers from cardback.svg (#6154) 2025-09-15 22:20:12 +02:00
cockatrice-original.svg svg+png updates 2015-04-28 16:06:36 +02:00
cockatrice.png svg+png updates 2015-04-28 16:06:36 +02:00
cockatrice.svg svg+png updates 2015-04-28 16:06:36 +02:00
hand.svg svg+png updates 2015-04-28 16:06:36 +02:00
hr.jpg hr.jpg changed 2009-08-24 13:33:38 +02:00