| 1 | |
| 2 | |
| 3 | @@ -632,7 +632,13 @@ |
| 4 | var graphicsDeviceConfiguration vz.GraphicsDeviceConfiguration |
| 5 | if *inst.Config.OS == limatype.DARWIN { |
| 6 | var err error |
| 7 | - graphicsDeviceConfiguration, err = newMacGraphicsDeviceConfiguration(1920, 1200, 80) |
| 8 | + if *inst.Config.Video.Display == "offscreen" { |
| 9 | + // macOS uses the display's physical density to select Retina backing. |
| 10 | + // Keep a 1920 x 1200 point workspace for the embedded application. |
| 11 | + graphicsDeviceConfiguration, err = newMacGraphicsDeviceConfiguration(3840, 2400, 220) |
| 12 | + } else { |
| 13 | + graphicsDeviceConfiguration, err = newMacGraphicsDeviceConfiguration(1920, 1200, 80) |
| 14 | + } |
| 15 | if err != nil { |
| 16 | return err |
| 17 | } |