aboutsummaryrefslogtreecommitdiff
path: root/TimeHACK.Main/OS/Win95/Win95Apps/MineSweeper/Square.cs
diff options
context:
space:
mode:
authorlempamo <[email protected]>2017-07-31 21:27:14 -0400
committerlempamo <[email protected]>2017-07-31 21:27:14 -0400
commit570717cf5ea87518ba2c5a483050dd518e970958 (patch)
tree56dfcf0cffda1bf6cf828aefb49febbcb509e36e /TimeHACK.Main/OS/Win95/Win95Apps/MineSweeper/Square.cs
parent3e66e3f863a82aba078d58bbaedb782997fad36c (diff)
parent2c87be280cb1869331549e5c6160b017fabea43e (diff)
downloadhistacom2-570717cf5ea87518ba2c5a483050dd518e970958.tar.gz
histacom2-570717cf5ea87518ba2c5a483050dd518e970958.tar.bz2
histacom2-570717cf5ea87518ba2c5a483050dd518e970958.zip
Merge branch 'master' of https://github.com/TimeHACKDevs/TimeHACK.git
Diffstat (limited to 'TimeHACK.Main/OS/Win95/Win95Apps/MineSweeper/Square.cs')
-rw-r--r--TimeHACK.Main/OS/Win95/Win95Apps/MineSweeper/Square.cs7
1 files changed, 5 insertions, 2 deletions
diff --git a/TimeHACK.Main/OS/Win95/Win95Apps/MineSweeper/Square.cs b/TimeHACK.Main/OS/Win95/Win95Apps/MineSweeper/Square.cs
index f7a9e99..2029995 100644
--- a/TimeHACK.Main/OS/Win95/Win95Apps/MineSweeper/Square.cs
+++ b/TimeHACK.Main/OS/Win95/Win95Apps/MineSweeper/Square.cs
@@ -37,6 +37,9 @@ namespace TimeHACK.OS.Win95.Win95Apps.MineSweeper
_button.Click += new EventHandler(Click);
_button.Paint += (sender, args) => Paintbrush.PaintClassicBorders(sender,args,2);
_button.MouseDown += new MouseEventHandler(DismantleClick);
+ _button.FlatStyle = FlatStyle.Flat;
+ _button.FlatAppearance.BorderSize = 1;
+ _button.BackgroundImageLayout = ImageLayout.Stretch;
_game.Panel.Controls.Add(Button);
}
@@ -69,13 +72,13 @@ namespace TimeHACK.OS.Win95.Win95Apps.MineSweeper
if (Dismantled)
{
_dismantled = false;
- Button.BackColor = SystemColors.Control;
+ Button.BackgroundImage = null;
Button.Text = "?";
}
else
{
_dismantled = true;
- Button.BackgroundImage = Properties.Resources.minsweeper_flag;
+ Button.BackgroundImage = Properties.Resources.WinClassicMinesweeperFlag;
}
OnDismantle();
}