1
Fork 0
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:
Andreas Kling 2019-04-15 03:12:28 +02:00
parent 791e8f5bb0
commit c8e601a5d5
3 changed files with 5 additions and 0 deletions

View file

@ -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 };