fixed transparency of splash screen

This commit is contained in:
Alexander Eckart committed 2012-03-04 13:09:04 +01:00
1 parent 848f5b62aa
commit 54a9856626
1 file changed
+5 -1
+5 -1
View File
@@ -141,7 +141,7 @@ namespace Vocaluxe
CLog.StopBenchmark(0, "Init Game"); CLog.StopBenchmark(0, "Init Game");
Application.DoEvents(); Application.DoEvents();
System.Threading.Thread.Sleep(10000);
// Start Main Loop // Start Main Loop
_SplashScreen.Close(); _SplashScreen.Close();
CDraw.MainLoop(); CDraw.MainLoop();
@@ -193,6 +193,7 @@ namespace Vocaluxe
class SplashScreen : Form class SplashScreen : Form
{ {
Bitmap logo; Bitmap logo;
Timer UpdateTimer;
public SplashScreen() public SplashScreen()
{ {
@@ -228,6 +229,9 @@ namespace Vocaluxe
else else
CLog.LogError("Can't find " + path); CLog.LogError("Can't find " + path);
SetStyle(ControlStyles.SupportsTransparentBackColor, true);
this.BackColor = Color.Transparent;
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None; this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
this.Text = CSettings.sProgramName; this.Text = CSettings.sProgramName;
this.CenterToScreen(); this.CenterToScreen();