mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 14:17:36 +00:00
Minesweeper: Use one premade mine palette for all mine widgets
Fixes #6283
This commit is contained in:
parent
c130161d9f
commit
900fe5633a
2 changed files with 8 additions and 5 deletions
|
@ -29,6 +29,7 @@
|
|||
#include <AK/Noncopyable.h>
|
||||
#include <LibCore/Timer.h>
|
||||
#include <LibGUI/Frame.h>
|
||||
#include <LibGfx/Palette.h>
|
||||
|
||||
class Field;
|
||||
class SquareButton;
|
||||
|
@ -118,6 +119,7 @@ private:
|
|||
RefPtr<Gfx::Bitmap> m_good_face_bitmap;
|
||||
RefPtr<Gfx::Bitmap> m_bad_face_bitmap;
|
||||
RefPtr<Gfx::Bitmap> m_number_bitmap[8];
|
||||
Gfx::Palette m_mine_palette;
|
||||
GUI::Button& m_face_button;
|
||||
GUI::Label& m_flag_label;
|
||||
GUI::Label& m_time_label;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue