splash: rename images to state 2x scaling

This commit is contained in:
Nick Vella 2019-08-16 23:50:12 +10:00
parent c078072471
commit b6c751399f
4 changed files with 4 additions and 4 deletions

View File

Before

Width:  |  Height:  |  Size: 3.5 KiB

After

Width:  |  Height:  |  Size: 3.5 KiB

View File

Before

Width:  |  Height:  |  Size: 11 KiB

After

Width:  |  Height:  |  Size: 11 KiB

View File

@ -351,8 +351,8 @@
<EmbeddedResource Include="Images\SplashScreenLogo.jpg" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="Images\NetFoundationLogo.png" />
<EmbeddedResource Include="Images\SplashScreenLogo.png" />
<EmbeddedResource Include="Images\NetFoundationLogo2x.png" />
<EmbeddedResource Include="Images\SplashScreenLogo2x.png" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<Import Project="$(RepoRoot)\writer.build.targets" />

View File

@ -63,8 +63,8 @@ namespace OpenLiveWriter.CoreServices
private void LoadScaledImages()
{
const float scaleFactor = 2f; // Assume logos are already at 2x scaling
var fdnLogoBmp = new Bitmap(this.GetType(), "Images.NetFoundationLogo.png");
var logoBmp = new Bitmap(this.GetType(), "Images.SplashScreenLogo.png");
var fdnLogoBmp = new Bitmap(this.GetType(), "Images.NetFoundationLogo2x.png");
var logoBmp = new Bitmap(this.GetType(), "Images.SplashScreenLogo2x.png");
var fdnLogoSize = new Size(
(int)Math.Ceiling(fdnLogoBmp.Width * (DisplayHelper.ScalingFactorX / scaleFactor)),