mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-05 16:14:38 +00:00
The CardPainter in LibCards caches already painted bitmaps. This adds a helper that gets the bitmap from a cache or creates a new one, if the it doesn't exist yet. It does this by calling a creator function with the new bitmap, which can then paint into the bitmap. This makes the code a bit simpler and shorter.