Solitaire: Use a pre-scaled buggie image for the back of cards
Instead of scaling on the fly, which is not super aesthetic yet.
This commit is contained in:
parent
e0a16f8752
commit
8311b24620
Notes:
sideshowbarker
2024-07-19 07:26:57 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/8311b24620c
2 changed files with 1 additions and 1 deletions
BIN
Base/res/icons/buggie-deck.png
Normal file
BIN
Base/res/icons/buggie-deck.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 5.4 KiB |
|
@ -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());
|
||||
|
|
Loading…
Add table
Reference in a new issue