Skip to content

Commit aac30c6

Browse files
Request full scale 1080p smoke screenshots
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent dd3c2fb commit aac30c6

2 files changed

Lines changed: 9 additions & 3 deletions

File tree

testing/release-smoke/Install-AndLaunchRelease.ps1

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,6 @@ function Download-ReleaseAsset {
5050
}
5151

5252
function Initialize-ScreenshotSupport {
53-
Add-Type -AssemblyName System.Windows.Forms
54-
Add-Type -AssemblyName System.Drawing
55-
5653
if (-not ('ReleaseSmokeNativeMethods' -as [type])) {
5754
Add-Type -TypeDefinition @'
5855
using System;
@@ -89,9 +86,17 @@ public static class ReleaseSmokeNativeMethods
8986
9087
[DllImport("user32.dll")]
9188
public static extern bool PrintWindow(IntPtr hWnd, IntPtr hdcBlt, uint nFlags);
89+
90+
[DllImport("user32.dll")]
91+
public static extern bool SetProcessDPIAware();
9292
}
9393
'@
9494
}
95+
96+
[ReleaseSmokeNativeMethods]::SetProcessDPIAware() | Out-Null
97+
98+
Add-Type -AssemblyName System.Windows.Forms
99+
Add-Type -AssemblyName System.Drawing
95100
}
96101

97102
function Wait-UniGetUIWindow {

testing/release-smoke/Start-LocalRdpClient.ps1

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ $rdpFile = Join-Path $SecretsDir 'localhost.rdp'
9090
'compression:i:0'
9191
'desktopwidth:i:1920'
9292
'desktopheight:i:1080'
93+
'desktopscalefactor:i:100'
9394
'audiomode:i:2'
9495
'redirectclipboard:i:0'
9596
) | Set-Content -Path $rdpFile -Encoding ascii

0 commit comments

Comments
 (0)