diff --git a/Demos/GameImpl.cs b/Demos/GameImpl.cs index 6eb6930..55dcfd2 100644 --- a/Demos/GameImpl.cs +++ b/Demos/GameImpl.cs @@ -48,6 +48,15 @@ namespace Demos { } protected override void LoadContent() { + // TODO remove with MonoGame 3.8.1 https://github.com/MonoGame/MonoGame/issues/7298 + #if !FNA + if (PlatformInfo.MonoGamePlatform == MonoGamePlatform.DesktopGL) { + this.GraphicsDeviceManager.PreferredBackBufferWidth = 1280; + this.GraphicsDeviceManager.PreferredBackBufferHeight = 720; + this.GraphicsDeviceManager.ApplyChanges(); + } + #endif + base.LoadContent(); this.UiSystem.AutoScaleReferenceSize = new Point(1280, 720); this.UiSystem.AutoScaleWithScreen = true; diff --git a/Jenkinsfile b/Jenkinsfile index 2a4b5c2..50421f1 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -9,7 +9,6 @@ pipeline { stage('Cake Build') { steps { sh 'dotnet tool restore' - sh 'dotnet workload restore' // we use xvfb to allow for graphics-dependent tests sh 'xvfb-run -a dotnet cake --target Publish --branch ' + env.BRANCH_NAME }