MCPcopy Create free account
hub / github.com/OldJii/ring_layout / Scale

Function Scale

example/windows/runner/win32_window.cpp:18–20  ·  view source on GitHub ↗

Scale helper to convert logical scaler values to physical using passed in scale factor

Source from the content-addressed store, hash-verified

16// Scale helper to convert logical scaler values to physical using passed in
17// scale factor
18int 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.

Callers 1

CreateAndShowMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected