diff --git a/Output/Graphics/Logo.png b/Output/Graphics/Logo.png index 2ad40d2f..0977ea93 100644 Binary files a/Output/Graphics/Logo.png and b/Output/Graphics/Logo.png differ diff --git a/Vocaluxe/Program.cs b/Vocaluxe/Program.cs index be340960..144db8f6 100644 --- a/Vocaluxe/Program.cs +++ b/Vocaluxe/Program.cs @@ -192,6 +192,8 @@ namespace Vocaluxe class SplashScreen : Form { + Bitmap logo; + public SplashScreen() { string path = Path.Combine(Environment.CurrentDirectory, Path.Combine(CSettings.sFolderGraphics, CSettings.sLogo)); @@ -199,9 +201,8 @@ namespace Vocaluxe { try { - Bitmap logo = new Bitmap(path); + logo = new Bitmap(path); this.ClientSize = new Size(logo.Width, logo.Height); - this.BackgroundImage = logo; } catch (Exception e) { @@ -230,8 +231,20 @@ namespace Vocaluxe this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None; this.Text = CSettings.sProgramName; this.CenterToScreen(); - this.TransparencyKey = this.BackColor; //thx to Klafhor :> this.Show(); } + + protected override void OnPaint(System.Windows.Forms.PaintEventArgs e) + { + } + + protected override void OnPaintBackground(System.Windows.Forms.PaintEventArgs e) + { + if (logo == null) + return; + + Graphics g = e.Graphics; + g.DrawImage(logo, new Rectangle(0, 0, this.Width, this.Height)); + } } }