fixed transparency of splash screen
This commit is contained in:
1 parent
848f5b62aa
commit
54a9856626
1 file changed
+9
-5
+9
-5
@@ -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()
|
||||||
{
|
{
|
||||||
@@ -227,15 +228,18 @@ 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();
|
||||||
this.Show();
|
this.Show();
|
||||||
}
|
}
|
||||||
|
|
||||||
protected override void OnPaint(System.Windows.Forms.PaintEventArgs e)
|
protected override void OnPaint(System.Windows.Forms.PaintEventArgs e)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
protected override void OnPaintBackground(System.Windows.Forms.PaintEventArgs e)
|
protected override void OnPaintBackground(System.Windows.Forms.PaintEventArgs e)
|
||||||
@@ -245,6 +249,6 @@ namespace Vocaluxe
|
|||||||
|
|
||||||
Graphics g = e.Graphics;
|
Graphics g = e.Graphics;
|
||||||
g.DrawImage(logo, new Rectangle(0, 0, this.Width, this.Height));
|
g.DrawImage(logo, new Rectangle(0, 0, this.Width, this.Height));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user