mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-03-13 08:59:34 +00:00
Repeatedly allocation a new Card object is unnecessary, and makes propagating OOM awkward. We also don't need a full card, just which suit/rank it is and its position. So, let's save all the extra allocation and just paint the card bitmap directly.