mirror of
https://github.com/SerenityOS/serenity
synced 2024-07-09 02:27:29 +00:00
GamesSettings: Center cards vertically after recent size change
This commit is contained in:
parent
eff25f9116
commit
ff8969bd5f
|
@ -29,7 +29,7 @@ public:
|
||||||
{
|
{
|
||||||
auto preview = TRY(adopt_nonnull_ref_or_enomem(new (nothrow) CardGamePreview()));
|
auto preview = TRY(adopt_nonnull_ref_or_enomem(new (nothrow) CardGamePreview()));
|
||||||
|
|
||||||
Gfx::IntPoint point { 25, 30 };
|
Gfx::IntPoint point { 25, 24 };
|
||||||
TRY(preview->add_stack(point, Cards::CardStack::Type::Stock));
|
TRY(preview->add_stack(point, Cards::CardStack::Type::Stock));
|
||||||
|
|
||||||
point.translate_by(Cards::Card::width + 30, 0);
|
point.translate_by(Cards::Card::width + 30, 0);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user