diff options
| author | Sean Hall <r.sean.hall@gmail.com> | 2020-07-19 16:16:43 +1000 |
|---|---|---|
| committer | Sean Hall <r.sean.hall@gmail.com> | 2020-07-19 19:12:52 +1000 |
| commit | 35d08c1563f69a1e0bfa47823f82d27120885b94 (patch) | |
| tree | 168d08bdcf3230646a0b228678102455fa6c67ff /src | |
| parent | 58023f02ba2b2245ffa30e76cdcd0be5288fc454 (diff) | |
| download | wix-35d08c1563f69a1e0bfa47823f82d27120885b94.tar.gz wix-35d08c1563f69a1e0bfa47823f82d27120885b94.tar.bz2 wix-35d08c1563f69a1e0bfa47823f82d27120885b94.zip | |
WIXFEAT:6204 Add DpiAwareness to WixBootstrapperApplicationSymbol.
Diffstat (limited to 'src')
| -rw-r--r-- | src/WixToolset.Data/Symbols/WixBootstrapperApplicationSymbol.cs | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/WixToolset.Data/Symbols/WixBootstrapperApplicationSymbol.cs b/src/WixToolset.Data/Symbols/WixBootstrapperApplicationSymbol.cs index 3d7876fd..d49e9503 100644 --- a/src/WixToolset.Data/Symbols/WixBootstrapperApplicationSymbol.cs +++ b/src/WixToolset.Data/Symbols/WixBootstrapperApplicationSymbol.cs | |||
| @@ -10,6 +10,7 @@ namespace WixToolset.Data | |||
| 10 | SymbolDefinitionType.WixBootstrapperApplication, | 10 | SymbolDefinitionType.WixBootstrapperApplication, |
| 11 | new IntermediateFieldDefinition[] | 11 | new IntermediateFieldDefinition[] |
| 12 | { | 12 | { |
| 13 | new IntermediateFieldDefinition(nameof(WixBootstrapperApplicationSymbolFields.DpiAwareness), IntermediateFieldType.Number), | ||
| 13 | }, | 14 | }, |
| 14 | typeof(WixBootstrapperApplicationSymbol)); | 15 | typeof(WixBootstrapperApplicationSymbol)); |
| 15 | } | 16 | } |
| @@ -19,6 +20,16 @@ namespace WixToolset.Data.Symbols | |||
| 19 | { | 20 | { |
| 20 | public enum WixBootstrapperApplicationSymbolFields | 21 | public enum WixBootstrapperApplicationSymbolFields |
| 21 | { | 22 | { |
| 23 | DpiAwareness, | ||
| 24 | } | ||
| 25 | |||
| 26 | public enum WixBootstrapperApplicationDpiAwarenessType | ||
| 27 | { | ||
| 28 | Unaware, | ||
| 29 | System, | ||
| 30 | PerMonitor, | ||
| 31 | PerMonitorV2, | ||
| 32 | GdiScaled, | ||
| 22 | } | 33 | } |
| 23 | 34 | ||
| 24 | public class WixBootstrapperApplicationSymbol : IntermediateSymbol | 35 | public class WixBootstrapperApplicationSymbol : IntermediateSymbol |
| @@ -32,5 +43,11 @@ namespace WixToolset.Data.Symbols | |||
| 32 | } | 43 | } |
| 33 | 44 | ||
| 34 | public IntermediateField this[WixBootstrapperApplicationSymbolFields index] => this.Fields[(int)index]; | 45 | public IntermediateField this[WixBootstrapperApplicationSymbolFields index] => this.Fields[(int)index]; |
| 46 | |||
| 47 | public WixBootstrapperApplicationDpiAwarenessType DpiAwareness | ||
| 48 | { | ||
| 49 | get => (WixBootstrapperApplicationDpiAwarenessType)this.Fields[(int)WixBootstrapperApplicationSymbolFields.DpiAwareness].AsNumber(); | ||
| 50 | set => this.Set((int)WixBootstrapperApplicationSymbolFields.DpiAwareness, (int)value); | ||
| 51 | } | ||
| 35 | } | 52 | } |
| 36 | } | 53 | } |
