summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2020-04-20 15:22:14 +0200
committerAndreas Kling <kling@serenityos.org>2020-04-20 15:24:59 +0200
commit8311b24620cc31937a9a620a7c5624e6745ef8f7 (patch)
tree6a9a7dc669f952ff800250d705d372236db718af
parente0a16f8752a366cd3c48f14a7419ddaca7bd3587 (diff)
downloadserenity-8311b24620cc31937a9a620a7c5624e6745ef8f7.zip
Solitaire: Use a pre-scaled buggie image for the back of cards
Instead of scaling on the fly, which is not super aesthetic yet.
-rw-r--r--Base/res/icons/buggie-deck.pngbin0 -> 5505 bytes
-rw-r--r--Games/Solitaire/Card.cpp2
2 files changed, 1 insertions, 1 deletions
diff --git a/Base/res/icons/buggie-deck.png b/Base/res/icons/buggie-deck.png
new file mode 100644
index 0000000000..d08bb9e5f0
--- /dev/null
+++ b/Base/res/icons/buggie-deck.png
Binary files differ
diff --git a/Games/Solitaire/Card.cpp b/Games/Solitaire/Card.cpp
index c536c346e4..4db2e28bf4 100644
--- a/Games/Solitaire/Card.cpp
+++ b/Games/Solitaire/Card.cpp
@@ -92,7 +92,7 @@ Card::Card(Type type, uint8_t value)
Gfx::Painter bg_painter(*s_background);
s_background->fill(Color::White);
- auto image = Gfx::Bitmap::load_from_file("/res/icons/buggie.png");
+ auto image = Gfx::Bitmap::load_from_file("/res/icons/buggie-deck.png");
ASSERT(!image.is_null());
float aspect_ratio = image->width() / static_cast<float>(image->height());