Scale helper to convert logical scaler values to physical using passed in scale factor
| 16 | // Scale helper to convert logical scaler values to physical using passed in |
| 17 | // scale factor |
| 18 | int Scale(int source, double scale_factor) { |
| 19 | return static_cast<int>(source * scale_factor); |
| 20 | } |
| 21 | |
| 22 | // Dynamically loads the |EnableNonClientDpiScaling| from the User32 module. |
| 23 | // This API is only needed for PerMonitor V1 awareness mode. |