mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 23:07:35 +00:00
Minesweeper: Add little icons to the flags and timer labels.
This commit is contained in:
parent
791e8f5bb0
commit
c8e601a5d5
3 changed files with 5 additions and 0 deletions
|
@ -188,6 +188,7 @@ void Field::paint_event(GPaintEvent& event)
|
|||
painter.add_clip_rect(event.rect());
|
||||
|
||||
auto inner_rect = frame_inner_rect();
|
||||
painter.add_clip_rect(inner_rect);
|
||||
|
||||
for (int y = inner_rect.top() - 1; y <= inner_rect.bottom(); y += square_size()) {
|
||||
Point a { inner_rect.left(), y };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue