splash: rename images to state 2x scaling
This commit is contained in:
parent
c078072471
commit
b6c751399f
Before Width: | Height: | Size: 3.5 KiB After Width: | Height: | Size: 3.5 KiB |
Before Width: | Height: | Size: 11 KiB After Width: | Height: | Size: 11 KiB |
|
@ -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" />
|
||||
|
|
|
@ -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)),
|
||||
|
|
Loading…
Reference in New Issue