Browse Source

Removed pointless #ifdef

pull/771/head
Dan Walmsley 10 years ago
parent
commit
83b0714f3b
  1. 6
      src/Skia/Avalonia.Skia.Desktop/RenderTarget.cs

6
src/Skia/Avalonia.Skia.Desktop/RenderTarget.cs

@ -79,8 +79,7 @@ namespace Avalonia.Skia
#endif #endif
} }
#if WIN32 private Size GetWindowDpiWin32()
private Size GetWindowDpi()
{ {
if (UnmanagedMethods.ShCoreAvailable) if (UnmanagedMethods.ShCoreAvailable)
{ {
@ -102,7 +101,6 @@ namespace Avalonia.Skia
return new Size(96, 96); return new Size(96, 96);
} }
#endif
public override DrawingContext CreateDrawingContext() public override DrawingContext CreateDrawingContext()
{ {
@ -123,7 +121,7 @@ namespace Avalonia.Skia
switch (runtimeService.GetRuntimeInfo().OperatingSystem) switch (runtimeService.GetRuntimeInfo().OperatingSystem)
{ {
case OperatingSystemType.WinNT: case OperatingSystemType.WinNT:
var dpi = GetWindowDpi(); var dpi = GetWindowDpiWin32();
scale = dpi.Width / 96.0; scale = dpi.Width / 96.0;
break; break;
} }

Loading…
Cancel
Save