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" />
|
<EmbeddedResource Include="Images\SplashScreenLogo.jpg" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<EmbeddedResource Include="Images\NetFoundationLogo.png" />
|
<EmbeddedResource Include="Images\NetFoundationLogo2x.png" />
|
||||||
<EmbeddedResource Include="Images\SplashScreenLogo.png" />
|
<EmbeddedResource Include="Images\SplashScreenLogo2x.png" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||||
<Import Project="$(RepoRoot)\writer.build.targets" />
|
<Import Project="$(RepoRoot)\writer.build.targets" />
|
||||||
|
|
|
@ -63,8 +63,8 @@ namespace OpenLiveWriter.CoreServices
|
||||||
private void LoadScaledImages()
|
private void LoadScaledImages()
|
||||||
{
|
{
|
||||||
const float scaleFactor = 2f; // Assume logos are already at 2x scaling
|
const float scaleFactor = 2f; // Assume logos are already at 2x scaling
|
||||||
var fdnLogoBmp = new Bitmap(this.GetType(), "Images.NetFoundationLogo.png");
|
var fdnLogoBmp = new Bitmap(this.GetType(), "Images.NetFoundationLogo2x.png");
|
||||||
var logoBmp = new Bitmap(this.GetType(), "Images.SplashScreenLogo.png");
|
var logoBmp = new Bitmap(this.GetType(), "Images.SplashScreenLogo2x.png");
|
||||||
|
|
||||||
var fdnLogoSize = new Size(
|
var fdnLogoSize = new Size(
|
||||||
(int)Math.Ceiling(fdnLogoBmp.Width * (DisplayHelper.ScalingFactorX / scaleFactor)),
|
(int)Math.Ceiling(fdnLogoBmp.Width * (DisplayHelper.ScalingFactorX / scaleFactor)),
|
||||||
|
|
Loading…
Reference in New Issue