Override high DPI scaling behavior detection


#1

I’m working on a 3rd party AAX EQ and if Windows’ scaling is changed… the plug-in is correctly resized… but I have a tester who is changing the Display settings “Override high DPI scaling behavior” to Application… and the plug-in UI is too large for the AAX Host window.

I added some logging and it shows the same values if I set “Override high DPI scaling behavior” to Application or System (Enhanced)… where the latter actually works and the EQ is correctly resized.

At 125%:

Global Scale Factor:          1.00
Display 1 *
Total Area:                   2048 x 1096
Scale:                        1.2500
DPI:                          120.0000

At 100%:

Global Scale Factor:          1.00
Display 1 *
Total Area:                   2560 x 1370
Scale:                        1.0000
DPI:                          96.0000

I was wondering if there’s any way to detect which mode that flag is without going to the Registry?

Thanks,

Rail