From 54a9856626fa1131181ceb6676fa90f2d5f6f2a5 Mon Sep 17 00:00:00 2001 From: Alexander Eckart Date: Sun, 4 Mar 2012 13:09:04 +0100 Subject: [PATCH] fixed transparency of splash screen --- Vocaluxe/Program.cs | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/Vocaluxe/Program.cs b/Vocaluxe/Program.cs index 144db8f6..0f843119 100644 --- a/Vocaluxe/Program.cs +++ b/Vocaluxe/Program.cs @@ -141,7 +141,7 @@ namespace Vocaluxe CLog.StopBenchmark(0, "Init Game"); Application.DoEvents(); - + System.Threading.Thread.Sleep(10000); // Start Main Loop _SplashScreen.Close(); CDraw.MainLoop(); @@ -193,6 +193,7 @@ namespace Vocaluxe class SplashScreen : Form { Bitmap logo; + Timer UpdateTimer; public SplashScreen() { @@ -227,15 +228,18 @@ namespace Vocaluxe } else CLog.LogError("Can't find " + path); - + + SetStyle(ControlStyles.SupportsTransparentBackColor, true); + this.BackColor = Color.Transparent; + this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None; this.Text = CSettings.sProgramName; this.CenterToScreen(); this.Show(); } - + protected override void OnPaint(System.Windows.Forms.PaintEventArgs e) - { + { } protected override void OnPaintBackground(System.Windows.Forms.PaintEventArgs e) @@ -245,6 +249,6 @@ namespace Vocaluxe Graphics g = e.Graphics; g.DrawImage(logo, new Rectangle(0, 0, this.Width, this.Height)); - } + } } }